Skip to content

fix: skip cross-origin requests in Service Worker#333

Merged
2 commits merged into
mainfrom
gln/split-selection-sw-fix-qsmr
Jul 7, 2026
Merged

fix: skip cross-origin requests in Service Worker#333
2 commits merged into
mainfrom
gln/split-selection-sw-fix-qsmr

Conversation

@glehmann

@glehmann glehmann commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Add URL guard so cross-origin requests (api.github.com/graphql)
bypass the SW entirely, preventing CORS errors caused by the SW
re-issuing CORS fetches. Also handle cache-miss gracefully with a
503 fallback response.

Resolves #332

glehmann added 2 commits July 7, 2026 21:31
Add URL guard so cross-origin requests (api.github.com/graphql)
bypass the SW entirely, preventing CORS errors caused by the SW
re-issuing CORS fetches. Also handle cache-miss gracefully with a
503 fallback response.

Resolves #332
On mousedown on one side, set the opposite side's elements to
user-select: none. The protection persists until the next mousedown
(which clears it), preventing the browser from extending the
selection across sides after mouseup.
@glehmann
glehmann force-pushed the gln/split-selection-sw-fix-qsmr branch from 936dd61 to 5962bb2 Compare July 7, 2026 19:31
@glehmann glehmann closed this pull request by merging all changes into main in 316c898 Jul 7, 2026
@glehmann
glehmann deleted the gln/split-selection-sw-fix-qsmr branch July 7, 2026 19:43
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.

Fix Service Worker CORS errors by skipping cross-origin requests

1 participant