最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wordpress - Content Security Policy not implementing properly through .htaccess? - Stack Overflow

programmeradmin1浏览0评论

I have never implemented a CSP through the .htaccess file before so I might be completely missing something here.

I am getting the following error:

I have added the following to the .htaccess:

<IfModule mod_headers.c>
  Header add Content-Security-Policy "script-src-elem 'self' 'unsafe-inline' data: .js   .js .js;"
</IfModule>

But the error hasn't gone away. I get this error even before adding a CSP to the .htaccess file. Could there be a policy added somewhere I'm not seeing?

Thanks!

发布评论

评论列表(0)

  1. 暂无评论