소스 검색

Fix PgHero Content-Security-Policy when CDN_HOST is used (#13595)

tags/v3.1.4
ThibG 11 달 전
committed by GitHub
부모
커밋
dea5db0e25
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -0
      config/initializers/content_security_policy.rb
  2. +1
    -1
      config/pghero.yml

+ 5
- 0
config/initializers/content_security_policy.rb 파일 보기

@@ -46,3 +46,8 @@ end
# For further information see the following documentation:
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
# Rails.application.config.content_security_policy_report_only = true

PgHero::HomeController.content_security_policy do |p|
p.script_src :self, :unsafe_inline, assets_host
p.style_src :self, :unsafe_inline, assets_host
end

+ 1
- 1
config/pghero.yml 파일 보기

@@ -38,4 +38,4 @@ databases:
# aws_secret_access_key: ...
# aws_region: us-east-1

override_csp: true
override_csp: false

불러오는 중...
취소
저장