Skip to content

Commit 6833c01

Browse files
gastonmastraShekarArun
authored andcommitted
Allow subdomains in CORS
1 parent 9c0a174 commit 6833c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deep/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def log_render_extra_context(record):
726726
CORS_ALLOW_ALL_ORIGINS = True
727727
else:
728728
CORS_ALLOWED_ORIGIN_REGEXES = [
729-
r"^https://[\w-]+\.thedeep\.io$",
729+
r"^https://[\w.-]+\.thedeep\.io$",
730730
]
731731

732732
CORS_URLS_REGEX = r'(^/api/.*$)|(^/media/.*$)|(^/graphql$)'

0 commit comments

Comments
 (0)