Joomla按钮不起作用拒绝应用内联样式,因为它违反了以下内容

时间:2016-02-28 19:42:26

标签: css joomla joomla3.0

当我在我的按钮中打开我的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.

有没有人知道如何修复这个???

1 个答案:

答案 0 :(得分:0)

在删除此标题后,isue是apache站点配置中的标头过滤器

标题始终设置Content-Security-Policy" default-src' self';"