ElMassimo / vite_ruby

⚡️ Vite.js in Ruby, bringing joy to your JavaScript experience
https://vite-ruby.netlify.app/
MIT License
1.28k stars 117 forks source link

How do I turn off the Inter-roman and Inter-italic fonts? #407

Closed johnantoni closed 11 months ago

johnantoni commented 11 months ago

Hi, I'm getting two error regarding the Inter-roman & Inter-italic fonts.

I believe the problem is to do with my cors setup, but is there any way to disable these fonts from trying to load?

plugin:1 Refused to load the font 'http://127.0.0.1:3000/vite-dev/assets/Inter-roman.var-17fe38ab.woff2?v=3.19' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'font-src' was not explicitly set, so 'default-src' is used as a fallback.

plugin:1 Refused to load the font 'http://127.0.0.1:3000/vite-dev/assets/Inter-italic.var-d1401419.woff2?v=3.19' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'font-src' was not explicitly set, so 'default-src' is used as a fallback.

If that's not posssible is there a way to allow serving the vite-dev files on startup?