fix(GRO-472): exclude OAuth callback from service worker caching (#228)
The NetworkFirst route for /api/* was intercepting the OIDC callback (/api/auth/oauth2/callback/authentik?code=...), returning a cached index.html instead of forwarding to the API server. Added navigateFallbackDenylist regex to exclude the callback path from service worker navigation handling, allowing the callback request to reach the API server normally. Fixes GRO-472. Co-authored-by: Flea Flicker <flea-flicker@groombook.farh.net> Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit was merged in pull request #228.
This commit is contained in:
committed by
GitHub
parent
ff216ea54c
commit
b090f8b810
@@ -40,6 +40,9 @@ export default defineConfig({
|
||||
},
|
||||
workbox: {
|
||||
globPatterns: ["**/*.{js,css,html,ico,png,svg,woff2}"],
|
||||
navigateFallbackDenylist: [
|
||||
/^\/api\/auth\/oauth2\/callback\//,
|
||||
],
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: /^http.*\/api\/.*/i,
|
||||
|
||||
Reference in New Issue
Block a user