Are Content-Security-Policy nonces designed for production use, or as a stop-gap when implementing a CSP?

Some websites use Content-Security-Policy nonces in order to include inline styling and script in their webpages.

Is the CSP nonce feature designed to be used for production use, or is it simply there as a stop-gap solution … Continue reading Are Content-Security-Policy nonces designed for production use, or as a stop-gap when implementing a CSP?

CSP – Unsafe-inline or unsafe-eval for specific domain is allowed or not

Following is a CSP policy, for example derived sample response headers.

The implementation below allows white-listed domains only in “script-src” directive but the ‘unsafe-inline’ and ‘unsafe-eval’ directives are also used next ‘self’.

W… Continue reading CSP – Unsafe-inline or unsafe-eval for specific domain is allowed or not

"Content-Security-Policy" HTTP Header with "default-src ‘self’; script-src ‘self’" not blocking downloading of non specify domain

I am trying to only allow ‘self’ and ‘https://cdn.jsdelivr.net’ by using:

“add_header Content-Security-Policy “default-src ‘self’; script-src ‘self’ https://cdn.jsdelivr.net”;

I encountered an issue where I am able to lo… Continue reading "Content-Security-Policy" HTTP Header with "default-src ‘self’; script-src ‘self’" not blocking downloading of non specify domain