You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
35
35
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
+
37
42
38
43
### Step Two - Write a Basic Document Scanning Page
39
44
@@ -440,6 +445,8 @@ Here is the complete code of the demo.
440
445
</html>
441
446
```
442
447
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
+
443
450
## FAQ
444
451
445
452
### What Languages are Supported?
@@ -458,7 +465,7 @@ Yes. You can specify which regions for OCR using the `rects` option of the [`rec
458
465
459
466
### Will My Document be Uploaded to a Remote Server?
460
467
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.
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**.
23
23
24
24
### Symptoms
25
25
@@ -41,6 +41,8 @@ from origin 'https://your-domain.com' has been blocked by CORS policy:
41
41
Permission was denied for this request to access the `unknown` address space.
42
42
```
43
43
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
+
44
46
---
45
47
46
48
#### Version-Specific Behavior
@@ -59,10 +61,14 @@ The observed behavior depends on Chromium browser version and Dynamic Web TWAIN
59
61
60
62
### Root Cause
61
63
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.
64
70
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.
66
72
67
73
### Resolution
68
74
@@ -170,6 +176,6 @@ Here are the details:
170
176
171
177
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).
172
178
173
-
## Other Causes
179
+
## Other Causes of Failure to Connect to the Service
174
180
175
181
There are other causes of service not being connected. You can find them in [another FAQ](/_articles/faq/service-prompting-to-install-repeatedly.md).
0 commit comments