updated cors to use env variable
This commit is contained in:
parent
7337841183
commit
fce7e1a653
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
|
|||
DEBUG = bool(os.environ.get("DEBUG", default=0))
|
||||
|
||||
ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", "127.0.0.1").split(",")
|
||||
CORS_ALLOWED_ORIGINS = ["http://localhost:3000"]
|
||||
CORS_ALLOWED_ORIGINS = os.environ.get("DJANGO_ALLOWED_ORIGINS", "http://localhost:3000").split(",")
|
||||
|
||||
# Application definition
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue