You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exposing access to caches with {credentials: 'omit'} could allow an untrusted worker running on a web page to overwrite existing cache entries, where it could inject an arbitrary script that would be run the next time the page is loaded. Such a script would then have not just one-time but permanent access to the page's credentials.
Currently both localStorage and indexedDB are inaccessible for workers with this option, this should also be made the case for caches
The text was updated successfully, but these errors were encountered:
BlobTheKat
changed the title
caches global property should not be available in Dedicated/Shared WorkerGlobalScope with {credentials: 'omit'}caches global property should not be available in Dedicated/Shared WorkerGlobalScope with {credentials: 'omit'}Jun 8, 2024
I agree that all storage APIs should behave the same, so if there are cases where localstorage/indexedDB are not available cache storage probably should be rejecting as well; i.e. opaque origins would be one such case. I'm not sure where this behavior is defined for credentials: omit for indexedDB and localStorage?
Exposing access to
caches
with{credentials: 'omit'}
could allow an untrusted worker running on a web page to overwrite existing cache entries, where it could inject an arbitrary script that would be run the next time the page is loaded. Such a script would then have not just one-time but permanent access to the page's credentials.Currently both
localStorage
andindexedDB
are inaccessible for workers with this option, this should also be made the case forcaches
The text was updated successfully, but these errors were encountered: