let *.gab.com <iframe> gab.com as needed for OAuth2 sequences
This commit is contained in:
parent
69591deb00
commit
5f19ac66ea
|
@ -5,11 +5,12 @@
|
|||
base_host = Rails.configuration.x.web_domain
|
||||
assets_host = Rails.configuration.action_controller.asset_host
|
||||
assets_host ||= "http#{Rails.configuration.x.use_https ? 's' : ''}://#{base_host}"
|
||||
frame_hosts = "https://*.gab.com"
|
||||
|
||||
Rails.application.config.content_security_policy do |p|
|
||||
p.base_uri :none
|
||||
p.default_src :none
|
||||
p.frame_ancestors :none
|
||||
p.frame_ancestors :self, frame_hosts
|
||||
p.font_src :self, assets_host
|
||||
p.img_src :self, :https, :data, :blob, assets_host
|
||||
p.style_src :self, :unsafe_inline, assets_host
|
||||
|
|
Loading…
Reference in New Issue