♻️ Refactor and update CORS, remove trailing slash from new Pydantic v2 (#617)

This commit is contained in:
Sebastián Ramírez
2024-02-29 02:03:23 +01:00
committed by GitHub
parent 53a0aebadf
commit cfd66d2eee
4 changed files with 12 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ PROJECT_NAME="FastAPI Project"
STACK_NAME=fastapi-project
# Backend
BACKEND_CORS_ORIGINS="[\"http://localhost\", \"http://localhost:4200\", \"http://localhost:3000\", \"http://localhost:8080\", \"https://localhost\", \"https://localhost:4200\", \"https://localhost:3000\", \"https://localhost:8080\", \"http://local.dockertoolbox.tiangolo.com\", \"http://localhost.tiangolo.com\"]"
BACKEND_CORS_ORIGINS="http://localhost,http://localhost:5173,https://localhost,https://localhost:5173,http://localhost.tiangolo.com"
SECRET_KEY=changethis
FIRST_SUPERUSER=admin@example.com
FIRST_SUPERUSER_PASSWORD=changethis