Skip to content

Commit 69636b2

Browse files
committed
update cors url regex
1 parent fedc0b4 commit 69636b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bornhack/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
]
150150

151151
CORS_ORIGIN_ALLOW_ALL = True
152-
CORS_URLS_REGEX = r"^/api/*$"
152+
CORS_URLS_REGEX = r"^/profile/api/$|^/o/.*$|^/bornhack-20[0-9]{2}/phonebook/json/$"
153153

154154
if DEBUG_TOOLBAR_ENABLED: # noqa: F405
155155
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"

0 commit comments

Comments
 (0)