mozilla / django-browserid

Django application for adding BrowserID support.
Mozilla Public License 2.0
179 stars 80 forks source link

Sanity checks fail with django-csp and no CSP_DEFAULT_SRC #225

Closed Osmose closed 10 years ago

Osmose commented 10 years ago

If you have django-csp installed and configured, we run a sanity check to make sure Persona is allowed by your content security policy. However, when we check CSP_DEFAULT_SRC, we use None as the fallback value if it's not defined, and then use in to check it as an iterable. Thus, if CSP_DEFAULT_SRC is undefined, a TypeError is raised.

Osmose commented 10 years ago

Fixed by https://github.com/mozilla/django-browserid/pull/261.