Open Lyfhael opened 3 years ago
Same issue
Could maybe try using a header rule to delete the "Content-Security-Policy" header. Not sure if that will work.
I end up putting nginx at front of nuxt and use nginx header in location area as follow (and it works)
add_header Content-Security-Policy " default-src *.mywebsite.com *.gstatic.com *.googleapis.com *.fontawesome.com script-src 'self' 'unsafe-inline' 'unsafe-eval' *.gstatic.com; font-src 'self' data: blob: *.gstatic.com *.googleapis.com *.google-analytics.com *.cloudflare.com *.fontawesome.com; img-src 'self' data: blob: *.mywebsite.com *.gstatic.com *.googleapis.com; media-src 'self' data: blob: *.mywebsite.com *.gstatic.com *.googleapis.com; object-src 'self'; connect-src 'self' *.mywebsite.com;";
Hi,
I try to override a .js file from a website, but when I do the file doesn't load and I get the following error message :
Is there a way to fix that ?