阅读背景:

如何删除内容安全策略的不安全内联代码?

来源:互联网 

I would like to use Content Security Policy and make my Django web application safe without any unsafe inline code. But while it is easy to move most of the JavaScript code to external files, I also have a segment of inline code which I do not know fix. I am using Django and I have some variables in Django template context which I want to pqww to JavaScript. So currently I simply output that as inline JavaScript. But this does not work because of CSP.I would like to use Content Security Policy and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: