Commit 4d2969b0 by Will Daly

Merge pull request #7312 from edx/will/quiet-cors-middleware-logging

Downgrade CORS middleware warning to info
parents 6e3d5568 d9d26796
...@@ -100,7 +100,7 @@ def is_cross_domain_request_allowed(request): ...@@ -100,7 +100,7 @@ def is_cross_domain_request_allowed(request):
# request or not. # request or not.
log.debug(u"Referrer hostname is `None`, so it is not on the whitelist.") log.debug(u"Referrer hostname is `None`, so it is not on the whitelist.")
elif referer_hostname != request.get_host(): elif referer_hostname != request.get_host():
log.warning( log.info(
( (
u"Domain '%s' is not on the cross domain whitelist. " u"Domain '%s' is not on the cross domain whitelist. "
u"Add the domain to `CORS_ORIGIN_WHITELIST` or set " u"Add the domain to `CORS_ORIGIN_WHITELIST` or set "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment