Skip to content

Commit 9ddde4e

Browse files
committed
Update settings.py
1 parent e11ee30 commit 9ddde4e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/Django-Backend/config/settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@
5353
'django.middleware.clickjacking.XFrameOptionsMiddleware',
5454
]
5555

56-
CORS_ALLOW_CREDENTIALS = True
57-
CORS_ALLOW_ALL_ORIGINS = True
56+
CORS_ALLOWED_ORIGINS = [
57+
'http://localhost:5173',
58+
]
5859
# For Production Only
5960
REST_FRAMEWORK = {
6061
'DEFAULT_RENDERER_CLASSES': (

0 commit comments

Comments
 (0)