summaryrefslogtreecommitdiff
path: root/service/pixelated/resources/sandbox_resource.py
diff options
context:
space:
mode:
authorFelix Hammerl <fhammerl@thoughtworks.com>2016-03-24 12:18:22 +0100
committerFelix Hammerl <fhammerl@thoughtworks.com>2016-03-24 12:22:25 +0100
commite1211fc4fcfbad96be8692a1d375cf10c9157ee5 (patch)
treed6b485420be0bb1115737330b5e0496f24e94c7b /service/pixelated/resources/sandbox_resource.py
parente887b933ab9b6f83d6ebe02138ea3cd79d30c710 (diff)
Issue #656: Fix sandbox fonts
Add CORS headers to sandbox resource Add OpenSans in normal font weight (400) to the sandbox CSS
Diffstat (limited to 'service/pixelated/resources/sandbox_resource.py')
-rw-r--r--service/pixelated/resources/sandbox_resource.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/service/pixelated/resources/sandbox_resource.py b/service/pixelated/resources/sandbox_resource.py
index a2d41cb7..35f99774 100644
--- a/service/pixelated/resources/sandbox_resource.py
+++ b/service/pixelated/resources/sandbox_resource.py
@@ -32,4 +32,6 @@ class SandboxResource(File):
request.setHeader('X-Content-Security-Policy', self.CSP_HEADER_VALUES)
request.setHeader('X-Webkit-CSP', self.CSP_HEADER_VALUES)
request.setHeader('Access-Control-Allow-Origin', '*')
+ request.setHeader('Access-Control-Allow-Methods', 'GET')
+
return super(SandboxResource, self).render_GET(request)