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

Joomla button's doesn't work Refused to apply inline style because it violates the following

当我在我的按钮中打开我的 joomla 网站时,它不再工作并且 css 被搞砸了。 在 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.

有人知道如何解决这个问题吗???

问题是在删除此 header 问题后解决了 apache 站点配置中的 header 过滤器

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