Content-Security-Policy
Posted: 30 Oct 2016, 03:31
hi,
I am getting the warning below with my attachement preview
view.php:105 Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-fdt1I4ENZog++96txMxUGp5zEULTdhbSDdeEELK6SrY='), or a nonce ('nonce-...') is required to enable inline execution.
From what search onlineI need to put something as below into http_api.php but I not sure how. Please help.
Content-Security-Policy: default-src 'self'; script-src 'self' https://example.com 'sha256-base64 encoded hash'
Thank you
I am getting the warning below with my attachement preview
view.php:105 Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-fdt1I4ENZog++96txMxUGp5zEULTdhbSDdeEELK6SrY='), or a nonce ('nonce-...') is required to enable inline execution.
From what search onlineI need to put something as below into http_api.php but I not sure how. Please help.
Content-Security-Policy: default-src 'self'; script-src 'self' https://example.com 'sha256-base64 encoded hash'
Thank you