From 6c644bf722d5ea7eeafb34381bb2865d942a6a76 Mon Sep 17 00:00:00 2001 From: Devoalda Date: Mon, 30 Oct 2023 22:05:20 +0800 Subject: [PATCH] Update CORS to allow all --- safeshare/safeshare/settings.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/safeshare/safeshare/settings.py b/safeshare/safeshare/settings.py index fcefd64..f1f466e 100644 --- a/safeshare/safeshare/settings.py +++ b/safeshare/safeshare/settings.py @@ -93,9 +93,12 @@ SIMPLE_JWT = { "TOKEN_TYPE_CLAIM": "token_type", } -CORS_ALLOWED_ORIGINS = [ - 'http://localhost:3000', -] +CORS_ALLOW_ALL_ORIGINS = True +# CORS_ALLOWED_ORIGINS = [ +# 'http://localhost:3000', +# # Any +# '' +# ] CORS_EXPOSE_HEADERS = [ 'Content-Disposition',