enable csp
This commit is contained in:
parent
4d6719fe7c
commit
eaf850c1e9
4 changed files with 6 additions and 5 deletions
|
@ -59,7 +59,7 @@ Rails.application.configure do
|
|||
port: 3000
|
||||
}
|
||||
|
||||
# Use Content-Security-Policy-Report-Only instead of Content-Security-Policy
|
||||
# Use Content-Security-Policy-Report-Only headers
|
||||
config.content_security_policy_report_only = true
|
||||
|
||||
# Raises error for missing translations
|
||||
|
|
|
@ -109,7 +109,8 @@ Rails.application.configure do
|
|||
host: ENV['APP_HOST']
|
||||
}
|
||||
|
||||
config.content_security_policy_report_only = true
|
||||
# The Content-Security-Policy is NOT in Report-Only mode
|
||||
config.content_security_policy_report_only = false
|
||||
|
||||
config.lograge.enabled = ENV['LOGRAGE_ENABLED'] == 'enabled'
|
||||
end
|
||||
|
|
|
@ -45,7 +45,7 @@ Rails.application.configure do
|
|||
protocol: :http
|
||||
}
|
||||
|
||||
# Use Content-Security-Policy-Report-Only instead of Content-Security-Policy
|
||||
# Use Content-Security-Policy-Report-Only headers
|
||||
config.content_security_policy_report_only = true
|
||||
|
||||
config.active_job.queue_adapter = :test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue