Replies: 2 comments
-
Hi Jason! Check If enabling CSP in development, you'll want to uncomment those lines to ensure the browser can connect to the Vite dev server directly (which is a different origin than the Rails server). |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've identified the problem. Annoyingly, this was caused by a rubocop autocorrect, which is hella annoying. I'm just documenting it for others. please hang on while I am investigating. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
bundle update vite_ruby
.Description 📖
When loading either using two processes (
bin/vite dev
+bin/rails s
) or usingbin/dev
, I get this console error:Refused to connect to 'ws://localhost:3036/vite-dev/' because it violates the following Content Security Policy directive: "default-src 'self' https:". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.
Reproduction 🐞
will update soon
Vite Ruby Info
3.0Run
bin/rake vite:info
and provide the output:Logs 📜
Output
Run
DEBUG=vite-plugin-ruby:* bin/vite dev
orDEBUG=vite-plugin-ruby:* bin/vite build
and provide the output:Screenshots 📷
Beta Was this translation helpful? Give feedback.
All reactions