Allow All Content Security Policy?

后端 未结 4 1273
野性不改
野性不改 2020-12-05 10:25

Is it possible to configure the Content-Security-Policy to not block anything at all? I\'m running a computer security class, and our web hacking project is running into iss

4条回答
  •  醉酒成梦
    2020-12-05 10:38

    It's not secure at all, but as staring point the real allow all policy is:

    default-src * 'unsafe-inline' 'unsafe-eval'; script-src * 'unsafe-inline' 'unsafe-eval'; connect-src * 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src *; style-src * 'unsafe-inline';
    

    See: https://content-security-policy.com/ and this CSP migration guide.

提交回复
热议问题