If a site includes the header ‘HTTP Content-Security-Policy require-sri-for’ then does this include all nested scripts?

If I’m using subresource integrity on a web page and a script that I import then itself imports a further script, will the CSP ‘require-sri-for’ also include those subsequent, nested, imported scripts?

For example, if a .js file is pulled… Continue reading If a site includes the header ‘HTTP Content-Security-Policy require-sri-for’ then does this include all nested scripts?

Trying to understand Content-Security-Policy: Why do some sites (e.g Google) use a "nonce", but also allow all inline scripts and use of eval()?

Here is an example of the CSP of accounts.google.com:

content-security-policy: script-src ‘nonce-DanEwkxkS1rktq35Z1hVcg’ ‘unsafe-inline’ ‘unsafe-eval’;object-src ‘none’;base-uri ‘self’;report-uri /cspreport

The “nonce” mea… Continue reading Trying to understand Content-Security-Policy: Why do some sites (e.g Google) use a "nonce", but also allow all inline scripts and use of eval()?

The End of CoinHive and the Rise of Cryptojacking

CoinHive is a service that was created in September 2017. It allows users to mine Monero cryptocurrency using JavaScript. CoinHive has remarkably changed the income models of content developers over the course of its 18 month-long adventure. However, d… Continue reading The End of CoinHive and the Rise of Cryptojacking

How to whitelist an iframe and script of some other source embeded/ called by an iframe that is whitelisted in the CSP?

For example I am having an iframe with src https://iframe1.com which is listed in my content security policy. If the whitelisted iframe calls some iframe from another source like https://iframe2.com, will the content security… Continue reading How to whitelist an iframe and script of some other source embeded/ called by an iframe that is whitelisted in the CSP?