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
In a multi-tenant system, where untrusted users have control over subdirectories, it would be nice to disable ServiceWorkers completely for paths outside the “user’s jail”.
A simple oversight like a missing trailing slash (/users/userA instead of /users/userA/) could allow installing a ServiceWorker outside the user’s jail.
Currently, you can kinda disable ServiceWorker by setting a non-sensical value for the Service-Worker-Allowed header, but I’d prefer a more semantic None (or similar).
The text was updated successfully, but these errors were encountered:
In a multi-tenant system, where untrusted users have control over subdirectories, it would be nice to disable ServiceWorkers completely for paths outside the “user’s jail”.
Here’s an example:
A simple oversight like a missing trailing slash (
/users/userA
instead of/users/userA/
) could allow installing a ServiceWorker outside the user’s jail.Currently, you can kinda disable ServiceWorker by setting a non-sensical value for the
Service-Worker-Allowed
header, but I’d prefer a more semanticNone
(or similar).The text was updated successfully, but these errors were encountered: