mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: use regex to allow origins
This commit is contained in:
parent
af4bd8b1d7
commit
6e9998d45c
1 changed files with 0 additions and 1 deletions
1
app.py
1
app.py
|
|
@ -31,7 +31,6 @@ app = FastAPI(
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origin_regex=learnhouse_config.hosting_config.allowed_regexp,
|
allow_origin_regex=learnhouse_config.hosting_config.allowed_regexp,
|
||||||
allow_origins=learnhouse_config.hosting_config.allowed_origins,
|
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue