Skip to content

Add enableAuthProxyCompat to recover SW from auth proxy expiry#2190

Merged
lissy93 merged 3 commits into
masterfrom
feat/service-worker-support-behind-proxy
Jun 5, 2026
Merged

Add enableAuthProxyCompat to recover SW from auth proxy expiry#2190
lissy93 merged 3 commits into
masterfrom
feat/service-worker-support-behind-proxy

Conversation

@lissy93

@lissy93 lissy93 commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Category

Feature

Overview

Adds a new config option, appConfig.enableAuthProxyCompat.
When this is enabled, along with enableServiceWorker and when Dashy is served behind an auth proxy, then the SW will attempt to fetch from an auth-enabled endpoint (getUser) with cache disabled. If this fails with an auth error, then we unregister the service worker and trigger a redirect (which will send user to login page to reauthenticate). There's a session storage key to prevent redirect loop.

Issue Number

Fixes #2189

@lissy93 lissy93 merged commit cfb51aa into master Jun 5, 2026
12 checks passed
@lissy93 lissy93 deleted the feat/service-worker-support-behind-proxy branch June 5, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE_REQUEST] Service worker cache prevents Cloudflare Zero Trust (and other auth proxies) from redirecting on session expiry

1 participant