use constant for localhost
This commit is contained in:
parent
b670b60ac6
commit
6fe4031b2e
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ Rails.application.config.content_security_policy do |policy|
|
|||
if Rails.env.production?
|
||||
policy.report_uri "https://demarchessimplifieestest.report-uri.com/r/d/csp/reportOnly"
|
||||
else
|
||||
policy.report_uri "http://localhost:3000/csp/" # ne pas notifier report-uri en dev/test
|
||||
policy.report_uri "http://#{ENV['APP_HOST']}/csp/" # ne pas notifier report-uri en dev/test
|
||||
end
|
||||
# Whitelist image
|
||||
policy.img_src :self, "*.openstreetmap.org", "static.demarches-simplifiees.fr", "*.cloud.ovh.net", "stats.data.gouv.fr"
|
||||
|
|
Loading…
Reference in a new issue