From c8069de3c8a090c33cd817d0248b92dab2cdd410 Mon Sep 17 00:00:00 2001 From: Gaston Mastrapasqua Date: Thu, 30 Jan 2025 16:26:47 +0100 Subject: [PATCH] Allow subdomains in CORS --- deep/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deep/settings.py b/deep/settings.py index cc6b76b84d..c213207088 100644 --- a/deep/settings.py +++ b/deep/settings.py @@ -718,7 +718,7 @@ def log_render_extra_context(record): CORS_ALLOW_ALL_ORIGINS = True else: CORS_ALLOWED_ORIGIN_REGEXES = [ - r"^https://[\w-]+\.thedeep\.io$", + r"^https://[\w.-]+\.thedeep\.io$", ] CORS_URLS_REGEX = r'(^/api/.*$)|(^/media/.*$)|(^/graphql$)'