mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Update CSP; re-enable Angular templates
We really need to remove all those Angular templates as soon as possible, and then revert this commit...
This commit is contained in:
@@ -10,7 +10,7 @@ Rails.application.config.content_security_policy do |policy|
|
||||
policy.img_src :self, :https, :data, '*.s3.amazonaws.com'
|
||||
policy.object_src :none
|
||||
policy.frame_ancestors :none
|
||||
policy.script_src :self, :https, :unsafe_inline, "*.stripe.com", "openfoodnetwork.innocraft.cloud"
|
||||
policy.script_src :self, :https, :unsafe_inline, :unsafe_eval, "*.stripe.com", "openfoodnetwork.innocraft.cloud"
|
||||
policy.style_src :self, :https, :unsafe_inline
|
||||
policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user