Skip to content

Commit 2ce376c

Browse files
committed
Improve prevent-fetch scriptlet
Related discussion: uBlockOrigin/uAssets#30731
1 parent efc59a2 commit 2ce376c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/resources/prevent-fetch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function preventFetchFn(
5151
const propNeedles = parsePropertiesToMatchFn(propsToMatch, 'url');
5252
const validResponseProps = {
5353
ok: [ false, true ],
54+
status: [ 403 ],
5455
statusText: [ '', 'Not Found' ],
5556
type: [ 'basic', 'cors', 'default', 'error', 'opaque' ],
5657
};

0 commit comments

Comments
 (0)