Skip to content

Commit

Permalink
Don't do domain checking on sustainability api
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Mar 13, 2018
1 parent fde9c8a commit d918a0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions readthedocs/core/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def decide_if_cors(sender, request, **kwargs): # pylint: disable=unused-argumen
for url in WHITELIST_URLS:
if request.path_info.startswith(url):
valid_url = True
# Don't do domain checking for this API for now
if url == '/api/v2/sustainability':
return True

if valid_url:
project_slug = request.GET.get('project', None)
Expand Down

0 comments on commit d918a0f

Please sign in to comment.