Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Disable X-Frame-Options: DENY to allow embedding SVG.

  • Loading branch information...
commit 0c8d5bd6a97b85432544fae4b28ff699539da85a 1 parent 3411115
Aymeric Augustin authored December 16, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  django_website/settings/www.py
4  django_website/settings/www.py
@@ -187,7 +187,9 @@
187 187
     SESSION_COOKIE_SECURE = True
188 188
     SESSION_COOKIE_HTTPONLY = True
189 189
     SECURE_SSL_REDIRECT = False
190  
-    SECURE_FRAME_DENY = True
  190
+    # This breaks SVG embedding in docs.
  191
+    # TODO: switch to X_FRAME_OPTIONS = 'SAMEORIGIN' in Django 1.4
  192
+    # SECURE_FRAME_DENY = True
191 193
     SECURE_HSTS_SECONDS = 600
192 194
     SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTOCOL", "SSL")
193 195
 

0 notes on commit 0c8d5bd

Please sign in to comment.
Something went wrong with that request. Please try again.