th: CSP: allow unsafe-inline for CSS

This commit is contained in:
Ariadne Conill 2024-02-02 21:07:12 -08:00 committed by Kouhai
parent 46d70b1ca6
commit 94a0b7a7f0

View file

@ -36,7 +36,7 @@ Rails.application.config.content_security_policy do |p|
p.frame_ancestors :none p.frame_ancestors :none
p.font_src :self, assets_host p.font_src :self, assets_host
p.img_src :self, :data, :blob, *media_hosts p.img_src :self, :data, :blob, *media_hosts
p.style_src :self, assets_host p.style_src :self, :unsafe_inline, assets_host
p.media_src :self, :data, *media_hosts p.media_src :self, :data, *media_hosts
p.frame_src :self, :https p.frame_src :self, :https
p.manifest_src :self, assets_host p.manifest_src :self, assets_host