add stripe to CSP

This commit is contained in:
Angus McLeod 2019-01-29 15:00:29 +11:00
parent fc08f8f654
commit e9746221ab
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,10 @@ register_html_builder('server:before-head-close') do
"<script src='https://js.stripe.com/v3/'></script>" "<script src='https://js.stripe.com/v3/'></script>"
end end
extend_content_security_policy(
script_src: ['https://js.stripe.com/v3/']
)
after_initialize do after_initialize do
load File.expand_path('../lib/discourse_donations/engine.rb', __FILE__) load File.expand_path('../lib/discourse_donations/engine.rb', __FILE__)
load File.expand_path('../config/routes.rb', __FILE__) load File.expand_path('../config/routes.rb', __FILE__)