AdguardTeam / AdguardTeam/AdguardForiOS

Scriptlets don't work on websites using Content-Security-Policy (CSP)

Đang mở
#2,352 7 bình luận 1 reaction 0 người được giao Xem trên GitHub
Bug Priority: P4 TechAudit Version: ADGuard v4.6 [Reserved]
Ngôn ngữ chính
Swift
Star
1.7k
Fork
240
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

4.5.5

### Environment

- OS: 17.5.1
- Device: iPhone XS

### Ad Blocking

_No response_

### Privacy

_No response_

### Social

_No response_

### Annoyances

_No response_

### Security

_No response_

### Other

_No response_

### Language-specific

_No response_

### Advanced protection for Safari

- [x] yes, I do

### Which DNS server do you use?

DNS protection disabled

### DNS protocol

DNS protection disabled

### Custom DNS

_No response_

### DNS filtering

- [ ] yes, I do

### Custom DNS filter

_No response_

### DNS implementation

DNS protection disabled

### Tunnel mode

DNS protection disabled

### Low-level settings

Bootstrap server:
Fallback server:
Blocking mode, etc:

### Issue Details

This was (partially) fixed in the Safari repo:
* https://github.com/AdguardTeam/AdGuardForSafari/issues/917
* https://github.com/AdguardTeam/AdGuardForSafari/commit/f102b098513a5049a5faac851c52c25102cfee3a

### Expected Behavior

_No response_

### Actual Behavior

The following code doesn't work on a website using CSP to restrict inline scripts:

https://github.com/AdguardTeam/AdguardForiOS/blob/25f8f104b1f775f3a2abc2f160db3eb40adffa07/AdguardExtension/SafariWebExtension/extension/src/pages/content/content.ts#L40-L56

### 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.