Skip to content

Commit

Permalink
Added initial generated version of CSP config (#1208)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamillion authored and julianguyen committed Oct 30, 2018
1 parent e8f171c commit 3ff7666
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions config/content_security_policy.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Rails.application.config.content_security_policy do |policy|
policy.default_src :none
policy.connect_src :self
policy.style_src :unsafe_inline, :self
policy.font_src :self, "https://cdn.jsdelivr.net"
policy.img_src "https://maps.gstatic.com", "https://res.cloudinary.com"
policy.script_src 'self', "https://js.pusher.com/3.0.0/xhr.min.js",
"https://js.pusher.com/3.0/pusher.min.js",
"https://maps.googleapis.com/maps/api/js",
"https://maps.googleapis.com/maps-api-v3/api/js",
"https://maps.googleapis.com/maps/api/place/js"
end

0 comments on commit 3ff7666

Please sign in to comment.