mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Add privacy page, include Matomo in production
This commit is contained in:
@@ -7,11 +7,12 @@
|
||||
Rails.application.config.content_security_policy do |policy|
|
||||
policy.default_src :none
|
||||
policy.font_src :self, 'https://cdnjs.cloudflare.com'
|
||||
policy.img_src :self, 'https://cdnjs.cloudflare.com', 'https://projecteuler.net'
|
||||
policy.img_src :self, 'https://cdnjs.cloudflare.com', 'https://projecteuler.net', 'https://matomo.pfischbeck.de'
|
||||
policy.object_src :none
|
||||
policy.script_src :self, 'https://cdnjs.cloudflare.com'
|
||||
policy.script_src :self, 'https://cdnjs.cloudflare.com', 'https://matomo.pfischbeck.de'
|
||||
policy.style_src :self, :unsafe_inline
|
||||
policy.connect_src :self
|
||||
policy.frame_src 'https://matomo.pfischbeck.de'
|
||||
|
||||
# Specify URI for violation reports
|
||||
# policy.report_uri "/csp-violation-report-endpoint"
|
||||
|
||||
Reference in New Issue
Block a user