Fix no credentials for service worker.

This commit is contained in:
InfoX 2026-10-03 20:49:44 +02:00
parent cf57049744
commit 5ae40e7787
Signed by: infox
GPG key ID: 0C5A10019B6B50F6

View file

@ -20,6 +20,7 @@ export default defineConfig({
...(process.env.HTTPS ? [basicSsl()] : []),
VitePWA({
registerType: 'autoUpdate',
useCredentials: true, // manifest <link> sends cookies, or the reverse-proxy login (Authentik) redirects it cross-origin and CORS blocks it
includeAssets: ['uswds/sprite.svg', 'icons/*.png', 'icons/*.svg'],
manifest: {
name: APP_NAME,