Google has just released a CSP testing tool and some more detailed information about CSP.
They mention some interesting things:
- There is a new 'strict-dynamic' being created.
unsafe-inline can always be used as a fallback for older browsers supporting only CSPv2. CSPv3-compliant browsers will ignore this if strict-dynamic, nonces or hashes are used.
- They do discourage the use of
'self' in script-src as it can be bypassed in certain cases.
In CSPv3 you can AFAIK also define subdirectories (privatebin.org/scripts), which could be another way to strengthen our policy. However in this case there might be compatibility issues.
So together with #82 this might be an issue we can address in the future when CSP has further developed itself 😃
Google has just released a CSP testing tool and some more detailed information about CSP.
They mention some interesting things:
unsafe-inlinecan always be used as a fallback for older browsers supporting only CSPv2. CSPv3-compliant browsers will ignore this ifstrict-dynamic, nonces or hashes are used.'self'inscript-srcas it can be bypassed in certain cases.In CSPv3 you can AFAIK also define subdirectories (
privatebin.org/scripts), which could be another way to strengthen our policy. However in this case there might be compatibility issues.So together with #82 this might be an issue we can address in the future when CSP has further developed itself 😃