6

Seems like Safari has a very strong restriction on CSP. For example, on GitHub, most of the userscripts and extension doesn't work because of that.

I got a such error from the console.

[Error] Refused to execute a script because its hash, its nonce, or 'unsafe-inline' does not appear in the script-src directive of the Content Security Policy. (pulls, line 0)

How can I stop CSP check in Safari?

double-beep
  • 5,031
  • 17
  • 33
  • 41
iLeoDo
  • 397
  • 3
  • 11
  • Do you have a plug-in or something that might be adding CSP restrictions to your browser? It doesn’t make sense that Safari is treating the same page more strictly than other browsers – Stephen R May 05 '18 at 01:05
  • Related: [Safari: Script unable to bypass CSP](https://github.com/Tampermonkey/tampermonkey/issues/296) issue on GitHub. – double-beep Feb 22 '23 at 18:41

0 Answers0