mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Improve prevent-fetch scriptlet
Related discussion: https://github.com/uBlockOrigin/uAssets/issues/30731
This commit is contained in:
parent
efc59a2fc8
commit
2ce376cf1d
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ function preventFetchFn(
|
|||
const propNeedles = parsePropertiesToMatchFn(propsToMatch, 'url');
|
||||
const validResponseProps = {
|
||||
ok: [ false, true ],
|
||||
status: [ 403 ],
|
||||
statusText: [ '', 'Not Found' ],
|
||||
type: [ 'basic', 'cors', 'default', 'error', 'opaque' ],
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue