diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/config/site.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service/pixelated/config/site.py b/service/pixelated/config/site.py index 6a29c478..7163b52b 100644 --- a/service/pixelated/config/site.py +++ b/service/pixelated/config/site.py @@ -1,7 +1,7 @@ from twisted.web.server import Site, Request -class AddCSPHeaderRequest(Request): +class AddSecurityHeadersRequest(Request): CSP_HEADER_VALUES = "default-src 'self'; style-src 'self' 'unsafe-inline'" def process(self): @@ -20,11 +20,11 @@ class AddCSPHeaderRequest(Request): class PixelatedSite(Site): - requestFactory = AddCSPHeaderRequest + requestFactory = AddSecurityHeadersRequest @classmethod def enable_csp_requests(cls): - cls.requestFactory = AddCSPHeaderRequest + cls.requestFactory = AddSecurityHeadersRequest @classmethod def disable_csp_requests(cls): |