-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new policy files generated by rails app:update
- Loading branch information
1 parent
300163e
commit b6f4399
Showing
2 changed files
with
27 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,16 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# Avoid CORS issues when API is called from the frontend app. | ||
# Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin AJAX requests. | ||
|
||
# Read more: https://github.com/cyu/rack-cors | ||
|
||
# Rails.application.config.middleware.insert_before 0, Rack::Cors do | ||
# allow do | ||
# origins 'example.com' | ||
# | ||
# resource '*', | ||
# headers: :any, | ||
# methods: [:get, :post, :put, :patch, :delete, :options, :head] | ||
# end | ||
# end |
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,11 @@ | ||
# Define an application-wide HTTP permissions policy. For further | ||
# information see https://developers.google.com/web/updates/2018/06/feature-policy | ||
# | ||
# Rails.application.config.permissions_policy do |f| | ||
# f.camera :none | ||
# f.gyroscope :none | ||
# f.microphone :none | ||
# f.usb :none | ||
# f.fullscreen :self | ||
# f.payment :self, "https://secure.example.com" | ||
# end |