我尝试在 asp.net web-form 项目的 web.config 文件中应用 csp。但是,我收到无法识别的不安全内联错误。
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Content-Security-Policy" value=" 'unsafe-inline'" />.
我尝试在值中使用 default-src、safe、unsafe-eval。他们都在抛出无法识别的错误。
你能给我提供任何资源来解决这个问题吗?