Fix CSP tests in glitch-soc

This commit is contained in:
Claire
2023-07-30 17:12:47 +02:00
parent 403a5c0f3f
commit 73a3228e0f
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
# For further information see the following documentation
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
if Rails.env.production?
unless Rails.env.development?
assets_host = Rails.configuration.action_controller.asset_host || "https://#{ENV['WEB_DOMAIN'] || ENV['LOCAL_DOMAIN']}"
data_hosts = [assets_host]