Skip to content

Commit d918a0f

Browse files
committed
Don't do domain checking on sustainability api
1 parent fde9c8a commit d918a0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

readthedocs/core/signals.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ def decide_if_cors(sender, request, **kwargs): # pylint: disable=unused-argumen
4242
for url in WHITELIST_URLS:
4343
if request.path_info.startswith(url):
4444
valid_url = True
45+
# Don't do domain checking for this API for now
46+
if url == '/api/v2/sustainability':
47+
return True
4548

4649
if valid_url:
4750
project_slug = request.GET.get('project', None)

0 commit comments

Comments
 (0)