Allow private-network CORS origins in development

This commit is contained in:
2026-03-01 17:08:50 -03:00
parent 0242e061c2
commit 1b2e0cb8af
7 changed files with 31 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ class Settings(BaseSettings):
public_base_url: str = "http://localhost:8000"
cors_origins: list[str] = Field(default_factory=lambda: ["http://localhost:5173", "http://localhost:3000"])
cors_allow_credentials: bool = False
cors_allow_development_private_network_origins: bool = True
LOCAL_HOSTNAME_SUFFIXES = (".local", ".internal", ".home.arpa")