Another try at fixing google analytics vs CSP

This commit is contained in:
Magnus Hagander
2018-12-22 16:24:10 +01:00
parent 3606b102b0
commit c1c40208ca

View File

@ -42,7 +42,7 @@ class PgMiddleware(object):
sources = OrderedDict([
('default', ["'self'", ]),
('img', ['*', ]),
('script', ["'self'", "google-analytics.com"]),
('script', ["'self'", "www.google-analytics.com", "ssl.google-analytics.com"]),
('media', ["'self'", ]),
('style', ["'self'", "fonts.googleapis.com"]),
('font', ["'self'", "fonts.gstatic.com"]),