GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(rsc): use `crossOrigin: anonymous` for css by hi-ogawa · Pull Request #1469 · vitejs/vite-plugin-react

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Sep 24, 2026

Copy link
Copy Markdown
Contributor
  • closes plugin-rsc: cross-origin stylesheet resources omit crossOrigin and can poison browser CORS cache #1464

This PR uses anonymous CORS for generated stylesheet resource links and ReactDOM preinit calls, which aligns their request mode with Vite's stylesheet generation and avoids caching a non-CORS response that breaks later CORS requests.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hi-ogawa @codex
fix(rsc): use CORS for stylesheet resources
dc50e50
Co-authored-by: Codex (GPT-5) <[email protected]>
@hi-ogawa hi-ogawa changed the title fix(rsc): use CORS for stylesheet resources fix(rsc): use crossOrigin: anonymous for stylesheet resources Sep 24, 2026
@hi-ogawa hi-ogawa changed the title fix(rsc): use crossOrigin: anonymous for stylesheet resources fix(rsc): use crossOrigin: anonymous for css Sep 24, 2026
hi-ogawa and others added 2 commits September 24, 2026 18:34
@hi-ogawa @codex
test(rsc): check CORS on all generated stylesheets
224a359
Co-authored-by: Codex (GPT-5) <[email protected]>
@hi-ogawa @codex
test(rsc): align manual stylesheet CORS
f103a62
Co-authored-by: Codex (GPT-5) <[email protected]>
@hi-ogawa
hi-ogawa marked this pull request as ready for review September 24, 2026 09:40
hi-ogawa and others added 4 commits September 24, 2026 18:40
@hi-ogawa
Revert "test(rsc): align manual stylesheet CORS"
8bbbd48
This reverts commit f103a62.
@hi-ogawa @codex
test(rsc): clarify generated stylesheet assertion
ae4f32e
Co-authored-by: Codex (GPT-5) <[email protected]>
@hi-ogawa @codex
test(rsc): simplify stylesheet CORS assertion
994cf0a
Co-authored-by: Codex (GPT-5) <[email protected]>
@hi-ogawa @codex
test(rsc): assert anonymous stylesheet CORS
c102fa8
Co-authored-by: Codex (GPT-5) <[email protected]>
@jaden-chen jaden-chen mentioned this pull request Sep 24, 2026
plugin-rsc: cross-origin stylesheet resources omit crossOrigin and can poison browser CORS cache #1464
Closed
@hi-ogawa
hi-ogawa merged commit 9b5ca53 into main Sep 25, 2026
22 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@hi-ogawa
hi-ogawa deleted the fix/issue-1464 branch September 25, 2026 00:47
@vite-release-bot vite-release-bot Bot mentioned this pull request Oct 7, 2026
release: [email protected] #1492
Merged
@james-elicx james-elicx mentioned this pull request Oct 22, 2026
feat(rsc): add nonce render option for server css links #1528
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

plugin-rsc: cross-origin stylesheet resources omit crossOrigin and can poison browser CORS cache

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@hi-ogawa
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.