admin管理员组文章数量:1122846
Im trying to add CSP : Header add Content-Security-Policy "script-src 'self';" - to my htaccess, seems like this line keeps breaking my site, The blocks gets broken, Unable to edit with elementor etc… I’ve tried every option of script-src and seems like nothing works here. Anyone had this situtation before?
Im trying to add CSP : Header add Content-Security-Policy "script-src 'self';" - to my htaccess, seems like this line keeps breaking my site, The blocks gets broken, Unable to edit with elementor etc… I’ve tried every option of script-src and seems like nothing works here. Anyone had this situtation before?
Share Improve this question asked Dec 22, 2021 at 15:29 EmotionalEmotional 212 bronze badges 2 |1 Answer
Reset to default -1For now yor must add 'unsafe-inline' in the script-src directive. Then elementor will work.
本文标签: pluginsHeaders ContentSecurityPolicy CSP Major Issue
版权声明:本文标题:plugins - Headers Content-Security-Policy CSP Major Issue 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736295402a1929563.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
Header append Content-Security-Policy "default-src 'self'; script-src https:;"
) and that should fix the problem. However, I tried that and it broke the Elementor and ?? maybe more plugins. I'm also not sure if it can be configured for WP. – I'm Root James Commented Apr 30, 2022 at 22:51