Skip to content

Conversation

@hbbayrak
Copy link

Summary

  • Add a Vite plugin that strips the Content-Security-Policy meta tag during development
  • Allows Vite's hot module replacement scripts to work without manual index.html modifications

Changes

  • client/vite.config.ts: Added removeCSPInDev() plugin

Test Plan

  • Run yarn dev in client directory
  • Verify HMR works without CSP errors in browser console
  • Verify production build still includes CSP meta tag

Add a Vite plugin that strips the Content-Security-Policy meta tag
during development, allowing Vite's hot module replacement scripts
to work without manual index.html modifications.
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.

1 participant