Skip to content

Commit 834c1e8

Browse files
committed
update faq related to chrome 142
1 parent a65c7de commit 834c1e8

File tree

3 files changed

+27
-22
lines changed

3 files changed

+27
-22
lines changed

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

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,71 +17,76 @@ last_modified: 2025-11-04 17:21:42 +0800
1717
1818
## Error message - CORS Errors caused by local network access permissions when using Chromium 142 and later
1919

20-
### Symptom
20+
### Overview
2121

22-
When using **Chromium-based browsers version 142 or later** (released on October 28th, 2025), including Chrome, Edge, Brave, and Opera, the Dynamsoft Web TWAIN Service may fail to function properly:
22+
Starting in **Chromium-based browsers v142+** (released Oct 28, 2025)including Chrome, Edge, Brave, and OperaDynamsoft Web TWAIN Service may not work as expected due to new local-network security rules.
2323

24-
- Phenomenon 1: the browser prompts users to download the service installer even though it is already installed.
24+
### Symptoms
2525

26-
![DWT_installer.png](/assets/imgs/DWT_installer.png)
26+
You may experience one or more of the following:
27+
28+
1. **Service installer repeatedly prompted**
29+
The browser prompts you to download/install the service even though it is already installed.
2730

28-
- Phenomenon 2: the initialization succeeds, but scanning or loading images results in blank images.
31+
![DWT_installer.png](/assets/imgs/DWT_installer.png)
2932

30-
Open the browser console (press F12, then go to the Console tab), you should see the following error message:
33+
2. **Initialization succeeds, but scan/load shows blank images**
34+
The browser console (F12 → Console) shows a CORS rejection similar to:
3135

3236
```shell
3337
Access to fetch at 'https://127.0.0.1:18623/fa/VersionInfo?ts=1761893667670' from origin 'https://your-domain.com' has been blocked by CORS policy: Permission was denied for this request to access the `unknown` address space.
3438
```
3539

36-
### Cause
40+
### Root Cause
3741

38-
In Chromium 142 Google introduced a new [Local Network Access security policy](https://chromestatus.com/feature/5152728072060928). Requests from web pages to local addresses such as 127.0.0.1 or localhost get blocked unless explicit permission is granted.
42+
Chromium 142 introduces a new [Local Network Access security policy](https://chromestatus.com/feature/5152728072060928) requirement.
43+
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.
3944

40-
This affects the Dynamic Web TWAIN Service which relies on local services for communication.
45+
Because Dynamic Web TWAIN communicates with a local service, these restrictions can prevent normal operation.
4146

4247
### Resolution
4348

4449
***1. To Manually Correct This in Chrome***
4550

46-
- Navigate to your Dynamic Web TWAIN web interface
47-
48-
- Click the lock icon (or settings icon) next to your site URL in the browser’s address bar.
51+
- Navigate to your Dynamic Web TWAIN page.
52+
- Click the lock/settings icon in the browser address bar.
4953
- Ensure that **Local Network Access** is enabled.
5054

5155
![local-network.png](/assets/imgs/local-network.png)
5256

5357
> [!NOTE]
5458
> If you're unable to restore functionality after enabling 'Local Network Access,' please contact [Dynamsoft](https://www.dynamsoft.com/contact/).
5559
56-
***2. (For Administrators) To Apply This Setting Across an Enterprise***
60+
***2. (For Admins) To Apply This Setting Across an Enterprise***
5761

5862
Enterprise administrators can deploy a Chrome and/or Edge policy to set the "Local Network Access" setting to "Allow" for your website.
5963

6064
Please Refer to:
6165
* [Chrome Enterprise Policy List & Management Documentation](https://chromeenterprise.google/policies/#LocalNetworkAccessAllowedForUrls)
6266
* [Microsoft Edge Browser Policy Documentation](https://learn.microsoft.com/en-us/deployedge/microsoft-edge-browser-policies/localnetworkaccessallowedforurls)
6367

68+
***3. Developer Notes***
6469

65-
66-
***3. (For Developers) To Manually Check the Permission on Local Network Access***
67-
68-
You can check the permission programmatically:
70+
**a) Check Permission Programmatically**
6971

7072
```javascript
7173
let status = await navigator.permissions.query({ name: "local-network-access" });
7274
console.log(status.state);
7375
```
7476

75-
If the permission is not granted, prompt users to manually enable it (Chrome settings → Privacy and security → Site settings → Local network access).
77+
If not granted, guide users to:
78+
Chrome → Settings → Privacy and Security → Site Settings → Local network access
79+
80+
**b) If Running Inside an `iframe`**
7681

77-
> [!WARNING]
78-
> If Dynamic Web TWAIN is running in an iframe, ensure the iframe element includes the following attribute:
82+
> [!IMPORTANT]
83+
> If your site is embedded in an iframe, you MUST explicitly allow local-network access.
7984
85+
Please explicitly allow `local-network-access` in the attributes of the iframe:
8086
```html
8187
<iframe src="..." allow="local-network-access *"></iframe>
8288
```
8389

84-
85-
### Planning
90+
### Roadmap
8691

8792
Dynamsoft plans to add a feature that automatically detects local service connectivity and permission status. If the connection is blocked, users will be prompted with a message and directed to this FAQ page.

assets/imgs/DWT_installer.png

5.23 KB
Loading

assets/imgs/local-network.png

-23.2 KB
Loading

0 commit comments

Comments
 (0)