django-cors-headers package installed and configurated
This commit is contained in:
8
config/conf/corsheaders.py
Normal file
8
config/conf/corsheaders.py
Normal file
@@ -0,0 +1,8 @@
|
||||
CORS_ALLOWED_ORIGINS = [
|
||||
"https://example.com",
|
||||
"http://localhost:3000",
|
||||
]
|
||||
|
||||
CORS_ALLOW_ALL_ORIGINS = True
|
||||
|
||||
CORS_ALLOW_CREDENTIALS = True
|
||||
Reference in New Issue
Block a user