AdguardTeam / AdguardTeam/CoreLibs

Add `local.adguard.org` to `Connection Allowlists` response header automatically

Đang mở
#2,096 0 bình luận 0 reaction 1 người được giao Được @ngorskikh nhận Xem trên GitHub
Bug Priority: P2 Status: Code Review Version: CoreLibs v1.23
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
52
Fork
10
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Please answer the following questions for yourself before submitting an issue

- [x] Filters were updated before reproducing an issue
- [x] I checked the [knowledge base](https://adguard.com/kb/) and found no answer
- [x] I checked to make sure that this issue has not already been filed

### AdGuard version

AdGuard 8.0.0 nightly 60 (5602)

### Browser version

Chrome 151

### OS version

Windows 11

### Issue Details

Chrome added the `Connection-Allowlist` response header - https://chromestatus.com/feature/5175745573945344
As far as I understand, it works similarly to `Content Security Policy` - https://github.com/WICG/connection-allowlists
Currently, when a website uses `Connection-Allowlist`, `local.adguard.org` gets blocked.
It should be shipped in Chrome 152 by default, but I can reproduce it in Chrome 151 already.

Steps to reproduce:
1. Add to user rules:
```adblock
usercontent.goog#%#console.log('AdGuard test message');
```
2. Navigate to https://safecontentframe.static.usercontent.goog/
3. Scroll to the bottom (to `Connection-Allowlist` section)
4. Open console
5. In `Connection Allowlist` section click on the `Render` button

### Expected Behavior

Message in console should be displayed.

### Actual Behavior

`local.adguard.org` is not added to `Connection Allowlist` response header, so it's blocked and message in console is not displayed.

Screenshot

Image

### Screenshots

_No response_

### Additional Information

_No response_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.