Skip to content

Commit 872d019

Browse files
Merge pull request #962 from dynamsoft-docs/preview
update OCR guide and Chrome 142 FAQ
2 parents 34590e4 + 8bfb977 commit 872d019

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

_articles/extended-usage/ocr.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ Download [DynamicWebTWAINOCRResources.zip](https://download2.dynamsoft.com/dwt/D
3333

3434
It will copy an `ocr` folder to Dynamic Web TWAIN Service's [installation folder](/_articles/extended-usage/dynamsoft-service-configuration.md#installation-folder). The `ocr` folder contains the runtime and model files that are required to perform on-device OCR.
3535

36-
PS: You need to [install Dynamic Web TWAIN Service](/_articles/extended-usage/dynamsoft-service-configuration.md#installation-of-dynamic-web-twain-service) beforehand.
36+
37+
> [!NOTE]
38+
> * You need to [install Dynamic Web TWAIN Service](/_articles/extended-usage/dynamsoft-service-configuration.md#installation-of-dynamic-web-twain-service) beforehand.
39+
> * Since only Windows is supported for now, you have to do this on a Windows client for testing.
40+
41+
3742

3843
### Step Two - Write a Basic Document Scanning Page
3944

@@ -440,6 +445,8 @@ Here is the complete code of the demo.
440445
</html>
441446
```
442447

448+
This complete code is different from the [online demo](#online-demo)'s code, which supports regional OCR. You can find the code for the online demo [here](https://download2.dynamsoft.com/Samples/DWT/Scan-Documents-and-Do-OCR.zip).
449+
443450
## FAQ
444451

445452
### What Languages are Supported?
@@ -458,7 +465,7 @@ Yes. You can specify which regions for OCR using the `rects` option of the [`rec
458465

459466
### Will My Document be Uploaded to a Remote Server?
460467

461-
No. The OCR process happens locally on your machine. No data is sent to any remote servers.
468+
No. The OCR process happens locally on your machine. No data is sent to any remote servers. Also, we do not collect data for training AI.
462469

463470
### What is Searchable PDF?
464471

_articles/faq/chromium-142-local-network-access-issue.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords: Dynamic Web TWAIN, Error Troubleshooting, CORS, unknown address space,
77
breadcrumbText: Error message - Permission was denied for this request to access the unknown address space
88
description: CORS unknown address space
99
date: 2025-11-04 17:21:42 +0800
10-
last_modified: 2025-11-26 15:46:00 +0800
10+
last_modified: 2025-12-12 10:04:00 +0800
1111
---
1212

1313
# Error Troubleshooting
@@ -19,7 +19,7 @@ last_modified: 2025-11-26 15:46:00 +0800
1919

2020
### Overview
2121

22-
Starting in **Chromium-based browsers v142+** (released Oct 28, 2025)—including Chrome, Edge, Brave, and Opera—Dynamsoft Web TWAIN Service may not work as expected due to new local-network security rules.
22+
Starting in **Chromium-based browsers v142+** (released Oct 28, 2025)—including Chrome, Edge, Brave, and Opera—Dynamsoft Web TWAIN Service may not work as expected due to new **Local Network Access (LNA)** restrictions that limit requests **from public network locations to private and loopback network locations**.
2323

2424
### Symptoms
2525

@@ -41,6 +41,8 @@ from origin 'https://your-domain.com' has been blocked by CORS policy:
4141
Permission was denied for this request to access the `unknown` address space.
4242
```
4343

44+
This error occurs because the web page is loaded from a public network origin (for example, `https://your-domain.com`) and is attempting to connect to a loopback network location (`127.0.0.1`), which Chrome now treats as a protected local network request.
45+
4446
---
4547

4648
#### Version-Specific Behavior
@@ -59,10 +61,14 @@ The observed behavior depends on Chromium browser version and Dynamic Web TWAIN
5961
6062
### Root Cause
6163

62-
Chromium 142 introduces a new [Local Network Access security policy](https://chromestatus.com/feature/5152728072060928) requirement.
63-
Requests from web pages to loopback addresses such as `localhost` / `127.0.0.1` are blocked unless the user (or an admin policy) explicitly grants access.
64+
Chromium 142 introduces and enforces a new [Local Network Access (LNA)](https://chromestatus.com/feature/5152728072060928) security model that restricts requests **from public network locations to private and loopback network locations**, requiring explicit user permission.
65+
66+
> [!NOTE]
67+
> For background and design rationale, see Chrome’s Developer Blog: [New permission prompt for Local Network Access](https://developer.chrome.com/blog/local-network-access).
68+
69+
Under this model, **requests originating from a public network location** (such as a publicly hosted website) **to private or loopback network locations** (including localhost and 127.0.0.1) are blocked by default unless the user explicitly grants permission.
6470

65-
Because Dynamic Web TWAIN communicates with a local service, these restrictions can prevent normal operation.
71+
Dynamic Web TWAIN relies on a locally installed service that listens on a loopback address. When a web application hosted on a public domain attempts to communicate with this service, Chrome categorizes the request as a **public-to-local** network request, which now requires explicit user consent.
6672

6773
### Resolution
6874

@@ -170,6 +176,6 @@ Here are the details:
170176

171177
This design will be integrated in v19.3. For old versions, we can include an extra js file, which can be retrieved by contacting [support](mailto://support@dynamsoft.com).
172178

173-
## Other Causes
179+
## Other Causes of Failure to Connect to the Service
174180

175181
There are other causes of service not being connected. You can find them in [another FAQ](/_articles/faq/service-prompting-to-install-repeatedly.md).

_articles/info/api/appendix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ description: Dynamic Web TWAIN SDK Documentation API Appendix Page
6363
|-2207 | The Dynamic Web TWAIN Service installed on your computer is outdated and no longer works with the JavaScript code on the website |
6464
|-2208 | The connection with the local Dynamic Web TWAIN Service encountered a problem and has been reset |
6565
|-2209 | The HTML5 (Chrome&Firefox) edition does not support this method or property |
66-
|-2217 | Missing dependent files for OCR. |
66+
|-2217 | Missing dependent files for OCR Kit. |
6767
|-2300 | Http upload error: the HTTP Server cannot empty |
6868
|-2301 | Network error |
6969
|-2302 | The result format is invalid |

0 commit comments

Comments
 (0)