As of Firefox 103 I’m getting the error: “Failed to register/update a ServiceWorker for scope ': Storage access is restricted in this context due to user settings or private browsing mode.”
The service worker worked fine on previous versions of Firefox and still works in the latest version of Chrome.
I’ve found that I can work around this by adding an exception for the site in Exceptions - Cookies and Site Data. However doing this manually is really not ideal.
I have 2 questions:
1: Can anyone tell me the reasons why Firefox might be doing this for my site?
2: Is it possible to add cookie exceptions via settings?
A bit of background - this is not a “normal” usecase.
The site in questions is actually the ZAP HUD, and we have an open issue here: https://github.com/zaproxy/zap-hud/issues/1135
We can launch Firefox from ZAP so changing the Firefox settings is not too bad, although it wont help users who want to run Firefox ‘manually’.