-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added initial generated version of CSP config (#1208)
- Loading branch information
1 parent
e8f171c
commit 3ff7666
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|