当我在我的按钮中打开我的joomla网站时,不再需要工作了。 当我在chrome中打开调试控制台时,我看到:
Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-9M5k0vw//OlS2LDUYDRrGvJ3jT8HdHLh4Tdu4qDFZ7U='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.
有没有人知道如何修复这个???
答案 0 :(得分:0)
在删除此标题后,isue是apache站点配置中的标头过滤器
标题始终设置Content-Security-Policy" default-src' self';"