Fix no credentials for service worker.
This commit is contained in:
parent
cf57049744
commit
5ae40e7787
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue