Skip to content

Commit

Permalink
update settings with CORS_ALLOWED_ORIGINS
Browse files Browse the repository at this point in the history
  • Loading branch information
kolharsam committed Oct 25, 2023
1 parent 5b590fc commit 9b2aa5a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions furbaby/furbaby/local_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@
"http://localhost:3000",
"http://*.vercel.app",
"http://localhost:8000",
"http://127.0.0.1:3000",
"http://127.0.0.1:8000",
"http://*.elasticbeanstalk.com",
]
CORS_EXPOSE_HEADERS = ["Content-Type", "X-CSRFToken"]
CORS_ALLOW_CREDENTIALS = True
Expand All @@ -183,3 +186,12 @@
DRF_STANDARDIZED_ERRORS = {
"ENABLE_IN_DEBUG_FOR_UNHANDLED_EXCEPTIONS": True,
}

CORS_ALLOWED_ORIGINS = [
"http://localhost:3000",
"http://*.vercel.app",
"http://localhost:8000",
"http://127.0.0.1:3000",
"http://127.0.0.1:8000",
"http://*.elasticbeanstalk.com",
]
12 changes: 12 additions & 0 deletions furbaby/furbaby/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@
"http://localhost:3000",
"http://*.vercel.app",
"http://localhost:8000",
"http://127.0.0.1:3000",
"http://127.0.0.1:8000",
"http://*.elasticbeanstalk.com",
]
CORS_EXPOSE_HEADERS = ["Content-Type", "X-CSRFToken"]
CORS_ALLOW_CREDENTIALS = True
Expand All @@ -180,3 +183,12 @@
DRF_STANDARDIZED_ERRORS = {
"ENABLE_IN_DEBUG_FOR_UNHANDLED_EXCEPTIONS": True,
}

CORS_ALLOWED_ORIGINS = [
"http://localhost:3000",
"http://*.vercel.app",
"http://localhost:8000",
"http://127.0.0.1:3000",
"http://127.0.0.1:8000",
"http://*.elasticbeanstalk.com",
]

0 comments on commit 9b2aa5a

Please sign in to comment.