Skip to content

Commit

Permalink
:( ?? #41, #40, amo uses same django-recaptcha as me. Same in-body sc…
Browse files Browse the repository at this point in the history
…ript. Why does theirs work but not me? I have coppied CSP to be identical
  • Loading branch information
haoqili committed Jul 9, 2011
1 parent 7b4cff3 commit ffc7e6e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion settings.py
Expand Up @@ -400,6 +400,10 @@ def JINJA_CONFIG():
"http://haoqili.scripts.mit.edu",
"https://fpdownload.macromedia.com",
"http://www.adobe.com",
# WHAT IS THE CSP TO MAKE CAPTACH WORK?
"https://static-cdn.addons.mozilla.net",
"https://statse.webtrendslive.com",
"https://www.getpersonas.com"
)
CSP_SCRIPT_SRC = ("'self'", STATIC_URL,
"https://api-secure.recaptcha.net",
Expand All @@ -408,13 +412,17 @@ def JINJA_CONFIG():
"http://haoqili.scripts.mit.edu",
"https://fpdownload.macromedia.com",
"http://www.adobe.com",
"https://static-cdn.addons.mozilla.net",
"https://www.paypalobjects.com",
)
CSP_STYLE_SRC = ("'self'", STATIC_URL,)
CSP_STYLE_SRC = ("'self'", STATIC_URL,"https://static-cdn.addons.mozilla.net")
CSP_OBJECT_SRC = ("'none'",)
CSP_MEDIA_SRC = ("'none'",)
CSP_FRAME_SRC = ("*", # allow all for the x-frame-options demo
"https://www.google.com", # Recaptcha comes from google
"http://www.google.com", # Recaptcha comes from google
"https://s3.amazonaws.com",
"https://getsatisfaction.com",
)
CSP_FONT_SRC = ("'self'", "fonts.mozilla.com", "www.mozilla.com", )
# self is needed for paypal which sends x-frame-options:allow when needed.
Expand Down

0 comments on commit ffc7e6e

Please sign in to comment.