Skip to content

Commit dbf5817

Browse files
committed
update: chrome 142 issue faq
1 parent e94ae9e commit dbf5817

File tree

1 file changed

+47
-19
lines changed

1 file changed

+47
-19
lines changed

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

Lines changed: 47 additions & 19 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-05 17:26:42 +0800
10+
last_modified: 2025-11-06 15:06:00 +0800
1111
---
1212

1313
# Error Troubleshooting
@@ -25,18 +25,36 @@ Starting in **Chromium-based browsers v142+** (released Oct 28, 2025)—includin
2525

2626
You may experience one or more of the following:
2727

28-
***1. Service installer repeatedly prompted***
28+
#### **1) Browser repeatedly prompts to download the service**
29+
The browser asks the user to download/install the Dynamsoft Web TWAIN Service even though it is already installed.
2930

30-
The browser prompts you to download/install the service even though it is already installed.
3131
![DWT_installer.png](/assets/imgs/DWT_installer.png)
3232

33-
***2. Initialization succeeds, but scan/load shows blank images***
33+
#### **2) Initialization succeeds, but scanning / loading returns blank**
34+
Initialization appears successful, but scanned or loaded images are blank.
35+
36+
The browser console (F12 → Console) may show a CORS denial similar to:
3437

35-
The browser console (F12 → Console) shows a CORS rejection similar to:
3638
```shell
37-
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.
39+
Access to fetch at 'https://127.0.0.1:18623/fa/VersionInfo?ts=1761893667670'
40+
from origin 'https://your-domain.com' has been blocked by CORS policy:
41+
Permission was denied for this request to access the `unknown` address space.
3842
```
3943

44+
---
45+
46+
#### Version-Specific Behavior
47+
The observed behavior depends on Chromium browser version and Dynamic Web TWAIN (DWT) version:
48+
49+
| Browser Version | DWT Version | Resulting Symptom |
50+
|-----------------|------------------|-----------------------------|
51+
| Chromium 142 | ≤ 18.4.2 | Download Prompt |
52+
| Chromium 142 | ≥ 18.5.0 | Blank images after scanning |
53+
| Chromium 144 (*) | Any | Download Prompt |
54+
55+
> (*) **Chromium 144 has not been officially released.**
56+
> Behavior is based on pre-release testing and may change once the final release becomes available.
57+
4058
### Root Cause
4159

4260
Chromium 142 introduces a new [Local Network Access security policy](https://chromestatus.com/feature/5152728072060928) requirement.
@@ -67,26 +85,36 @@ Please refer to:
6785

6886
***3. Developer Notes***
6987

70-
**a) Check Permission Programmatically**
88+
**a) If Running Inside an `iframe`**
7189

72-
```javascript
73-
let status = await navigator.permissions.query({ name: "local-network-access" });
74-
console.log(status.state);
75-
```
90+
> [!IMPORTANT]
91+
> If Dynamic Web TWAIN is running inside an iframe from a different origin (cross-origin), you must explicitly grant local-network access in the iframe.
92+
> If the iframe is same-origin, no additional configuration is required.
7693
77-
If not granted, guide users to:
94+
To enable access, specify the `allow` attribute.
95+
For security reasons, it is recommended to allow only the necessary origin rather than using a wildcard.
7896

79-
Chrome → Settings → Privacy and Security → Site Settings → Local network access
97+
```html
98+
<!-- Recommended: restrict to specific origin -->
99+
<iframe src="..." allow="local-network-access your-domain.com"></iframe>
80100

81-
**b) If Running Inside an `iframe`**
101+
<!-- Not recommended: wildcard -->
102+
<!-- <iframe src="..." allow="local-network-access *"></iframe> -->
103+
```
82104

83-
> [!IMPORTANT]
84-
> If your site is embedded in an iframe, you MUST explicitly allow local-network access.
105+
**b) (Optional Enhancement) Permission Check for Improved UX**
85106

86-
Please explicitly allow `local-network-access` in the attributes of the iframe:
87-
```html
88-
<iframe src="..." allow="local-network-access *"></iframe>
107+
You can optionally query Local Network Access permission at runtime.
108+
This isn’t required, but implementing a check can help you proactively notify users and provide clearer guidance if permission is missing.
109+
```javascript
110+
let status = await navigator.permissions.query({ name: "local-network-access" });
111+
console.log(status.state);
89112
```
113+
If the permission is not granted, consider displaying a user-friendly message directing them to:
114+
115+
> Chrome → Settings → Privacy and Security → Site Settings → Local network access
116+
117+
This approach provides a more polished user experience, especially during onboarding or troubleshooting.
90118

91119
### Roadmap
92120

0 commit comments

Comments
 (0)