Remove origins
This commit is contained in:
parent
cc744e1fef
commit
386e6dcb35
@ -25,17 +25,8 @@ app = FastAPI(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
origins = [
|
|
||||||
"http://localhost:3000",
|
|
||||||
"http://127.0.0.1:3000",
|
|
||||||
"localhost:3000",
|
|
||||||
"127.0.0.1:3000",
|
|
||||||
# f"{CUSTOM_DOMAIN}"
|
|
||||||
]
|
|
||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=origins,
|
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user