Skip to content

Commit 98cc770

Browse files
committed
CFG -> CORS_ALLOW_ALL_ORIGINS=True
1 parent 4092f3f commit 98cc770

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

django-api/core/settings.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,11 @@
149149
}
150150

151151
# ##################################################################### #
152-
# ################### CORS ############################### #
152+
# CORS
153153
# ##################################################################### #
154154

155+
CORS_ALLOW_ALL_ORIGINS=True
156+
155157
# Load the default ones
156158
CORS_ALLOWED_ORIGINS = ["http://localhost:3000", "http://127.0.0.1:3000"]
157159

@@ -160,9 +162,10 @@
160162

161163
if CORS_ALLOWED_ORIGINS_ENV:
162164
CORS_ALLOWED_ORIGINS += CORS_ALLOWED_ORIGINS_ENV.split(' ')
163-
165+
166+
164167
# ##################################################################### #
165-
# ################### TESTING ############################### #
168+
# TESTING
166169
# ##################################################################### #
167170

168171
TESTING = False

0 commit comments

Comments
 (0)