Skip to content

Commit

Permalink
Modify headers to comply with secure content policy
Browse files Browse the repository at this point in the history
  • Loading branch information
yulgolem committed May 17, 2021
1 parent 0ac4755 commit c86168b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ class Application < Rails::Application
'script-src https://www.recaptcha.net/recaptcha/ ' \
'https://www.google.com/recaptcha/ ' \
'https://www.gstatic.com/recaptcha/;' \
"frame-src 'self' https://www.google.com/recaptcha/",
'img-src www.gstatic.com;'\
"frame-src 'self' https://www.google.com/recaptcha/ https://www.google.com https://www.recaptcha.net/recaptcha/;"\
"object-src 'none';"\
"base-uri 'none';",
}

config.active_support.parse_json_times = true
Expand Down

0 comments on commit c86168b

Please sign in to comment.