We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eeb43f3 + ec7ebe8 commit c913af6Copy full SHA for c913af6
2 files changed
.env.example
@@ -1,6 +1,6 @@
1
# Backend
2
RUN_ENV=local
3
-BACKEND_CORS_ORIGINS=[http://localhost]
+BACKEND_CORS_ORIGINS=["http://localhost"]
4
PROJECT_NAME="fast-api-template"
5
SERVER_NAME=localhost
6
SERVER_HOST=http://localhost:8000/
app/core/config.py
@@ -21,7 +21,7 @@ class Settings(BaseSettings):
21
SECRET_KEY: str = secrets.token_urlsafe(32)
22
SERVER_NAME: str
23
SERVER_HOST: AnyHttpUrl
24
- BACKEND_CORS_ORIGINS: Union[str, List[str]] = []
+ BACKEND_CORS_ORIGINS: Union[List[str], str] = []
25
PROJECT_NAME: str
26
AUTHENTICATION_API_RATE_LIMIT: str = "5 per minute"
27
SECURE_COOKIE: bool = True
0 commit comments