Content-Security-Policy not working in Safari

Hi,

I added a Content-Security-Policy that works in Firefox and Chrome but not Safari. I am using Safari 10.1.2. In Safari I get the error:

“Refused to apply a stylesheet because its hash, its nonce, or 'unsafe-inline' does not appear in the style-src directive of the Content Security Policy.”

So, I tried adding ‘unsafe-inline' to style-src but I still get the error in Safari. I have some hashes in style-src (that were provided by Chrome), and when I get rid of the hash, Safari gives no errors as long as I have ‘unsafe-inline’ written. If I put the hash back in, I get the error again in Safari. The other browsers work fine. Does anyone know what I can do to get the Content-Security-Policy working in Safari? Any help is greatly appreciated!

ok

yes, ok

I'm having the same problem. Is there a fix?

Hi, I'm having the same problem but I fixed.

Problem:

1 - Settings - iCloud - iCloud Mail & Safari make disable

2 - Settings - Safari - Advanced Level Settings

Content-Security-Policy not working in Safari
 
 
Q