We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e64cf8e commit 4bb4446Copy full SHA for 4bb4446
1 file changed
public/sw.js
@@ -572,6 +572,14 @@ self.addEventListener('fetch', (event) => {
572
return
573
}
574
575
+ // Don't intercept cross-origin requests that aren't LLM or HuggingFace APIs
576
+ // (those are handled above). This prevents the SW from modifying external
577
+ // API calls like OAuth token exchanges (e.g. Vertex AI service account auth).
578
+ const isSameOrigin = url.origin === self.location.origin
579
+ if (!isSameOrigin) {
580
+ return
581
+ }
582
+
583
// Skip caching for model registry - always fetch fresh
584
if (url.pathname === '/models/model-registry.json') {
585
0 commit comments