Improve prevent-fetch scriptlet

Related discussion:
https://github.com/uBlockOrigin/uAssets/issues/30731
This commit is contained in:
Raymond Hill 2026-02-07 11:13:29 -05:00
parent efc59a2fc8
commit 2ce376cf1d
No known key found for this signature in database
GPG key ID: F5630CAE62A14316

View file

@ -51,6 +51,7 @@ function preventFetchFn(
const propNeedles = parsePropertiesToMatchFn(propsToMatch, 'url'); const propNeedles = parsePropertiesToMatchFn(propsToMatch, 'url');
const validResponseProps = { const validResponseProps = {
ok: [ false, true ], ok: [ false, true ],
status: [ 403 ],
statusText: [ '', 'Not Found' ], statusText: [ '', 'Not Found' ],
type: [ 'basic', 'cors', 'default', 'error', 'opaque' ], type: [ 'basic', 'cors', 'default', 'error', 'opaque' ],
}; };