这个错误是由于在网页中使用了内联样式(inline style)或者外部样式表(external style sheet),但是没有明确设置'style-src-elem'策略导致的。'style-src-elem'是 Content Security Policy(CSP)的一个指令,用于控制网页中内联样式的加载和执行。 CSP是一种安全机制,用于减少跨站脚本攻击(XSS)和数据注入攻击等...
…elem` when using unsafe-inline (#11613) * add nonce to script-src-elem csp directive if defined * added changeset * also handle hashes and style-src-attr and style-src-elem * changed order of variable declaration * fixed typo * updated changeset * fix bug and update test * update te...