Hello,
According to slide 68 of lecture 06, CSP level 2 introduces hashes and nonces for script-src and disables ‘unsafe-inline’ if present. However, in slide 70, the example CSP header is:
Content-Security-Policy: script-src ‘self’ ‘nonce-ABCDEF’ ‘unsafe-inline’
My question is: if ‘unsafe-inline’ is supposed to be disabled by the presence of a nonce, why is it still included in this header? Would an inline script like <script>/* ... */</script> still be allowed in this case?
Also, does the order of the keywords (‘self’ ‘nonce-ABCDEF’ ‘unsafe-inline’) in the script-src matter for how the policy is interpreted?
Thanks in advance for the clarification.