Skip to content

Commit

Permalink
Add google maps api host to secure headers (#2952)
Browse files Browse the repository at this point in the history
  • Loading branch information
plisovin authored Aug 31, 2023
1 parent 269a71c commit 2dc6b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/maps_content_security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module MapsContentSecurityPolicy

included do
content_security_policy(only: :show) do |policy| # Allow google maps
policy.connect_src :self, 'https://www.google.com', 'https://www.google-analytics.com'
policy.connect_src :self, 'https://www.google.com', 'https://www.google-analytics.com', 'https://maps.googleapis.com'
policy.frame_src :self, "https://www.googletagmanager.com/" # GTM fallback
policy.font_src :self, :data, "https://fonts.gstatic.com"
policy.img_src :self, :data, "https://www.google.com", "https://maps.googleapis.com", "https://maps.gstatic.com/", "https://www.google-analytics.com"
Expand Down

0 comments on commit 2dc6b91

Please sign in to comment.