Worker Login & Subresource Integrity
Debugging guide for authentication worker issues and SRI (Subresource Integrity) verification failures.
Worker Login Flow
The Proton WebClients frontend uses service workers for authentication session management. When the Tauri WebView loads the Proton app, the service worker intercepts login requests and manages session tokens.
Common Issues
- Service worker not registered: Clear WebView cache and reload
- CORS blocking worker scripts: Verify proxy headers
- Token not persisted: Check cookie jar sharing between WebView and reqwest
SRI Verification
Proton’s frontend uses SRI hashes to verify script integrity. When scripts are modified or cached improperly, SRI failures prevent the app from loading.
Debugging Steps
- Open DevTools → Console for SRI error messages
- Check Network tab for blocked scripts
- Clear WebView cache and service worker registrations
- Verify no middleware is modifying script content