-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
fix: restrict SW route patterns to same-origin only (koala73/worldmonitor#247)
The broad regex /^https?://./api/./i matched ANY URL with /api/
in the path, including external APIs like NASA EONET
(eonet.gsfc.nasa.gov/api/v3/events). Workbox intercepted these
cross-origin requests with NetworkOnly, causing no-response errors
when CORS failed.
Changed all /api/, /ingest/, and /rss/ SW route patterns to use
sameOrigin callback check so only our Vercel routes get NetworkOnly
handling. External APIs now pass through without SW interference.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels