Error: Refused to load the script because it violates the following Content Security Policy directive: "default-src 'none'"
I have a React + Node.js app that works fine on localhost but runs into errors when deployed to Heroku, resulting in a 404 response status. This is one of the console errors I get when loading the app on Chrome: Refused to load the script 'https://ssl.google-analytics.com/ga.js' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'script-src-elem' was not explicitly set, so 'default-src' is used as a fallback. (anonymous) @ 1:3 ... Failed to load resource: the server responded with a status of 404 (Not Found) These scripts and stylesheets are no
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.