mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🔧 fix: Fetch PWA Manifest with credentials over CORS (#5156)
When behind authentication (for eg: Cloudflare Access), browsers won't send credentials when fetching the manifest file by default. To fix, this change adds `crossorigin="use-credentials"` to the manifest link tag by enabling the `useCredentials` option in VitePWA.
This commit is contained in:
parent
45dd2b262f
commit
d7dc58dd23
1 changed files with 1 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ export default defineConfig({
|
|||
devOptions: {
|
||||
enabled: false, // enable/disable registering SW in development mode
|
||||
},
|
||||
useCredentials: true,
|
||||
workbox: {
|
||||
globPatterns: ['assets/**/*.{png,jpg,svg,ico}', '**/*.{js,css,html,ico,woff2}'],
|
||||
maximumFileSizeToCacheInBytes: 4 * 1024 * 1024,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue