File tree Expand file tree Collapse file tree 4 files changed +1847
-2515
lines changed Expand file tree Collapse file tree 4 files changed +1847
-2515
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ def server_host(self) -> str:
6565 BACKEND_CORS_ORIGINS : Annotated [
6666 list [AnyUrl ] | str , BeforeValidator (parse_cors )
6767 ] = []
68+ BACKEND_CORS_ORIGIN_REGEXP : str | None = None
6869
6970 PROJECT_NAME : str = "APTSELL.AI"
7071 SENTRY_DSN : HttpUrl | None = None
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ async def lifespan(app: FastAPI):
9696 allow_origins = [
9797 str (origin ).strip ("/" ) for origin in settings .BACKEND_CORS_ORIGINS
9898 ],
99+ allow_origin_regex = settings .BACKEND_CORS_ORIGIN_REGEXP ,
99100 allow_credentials = True ,
100101 allow_methods = ["*" ],
101102 allow_headers = ["*" ],
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ authors = [
88 {
name =
" admin" ,
email =
" [email protected] " }
99]
1010readme = " README.md"
11- requires-python = " >= 3.9 "
11+ requires-python = " >= 3.10 "
1212dependencies = [
1313 " fastapi>=0.115.6" ,
1414 " fastapi-cli>=0.0.5" ,
You can’t perform that action at this time.
0 commit comments