Add CORS for production domain
This commit is contained in:
parent
cdcefa389d
commit
584660f9a7
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ app = FastAPI(
|
||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=["http://localhost:3000"],
|
allow_origins=["http://localhost:3000", "https://model.manohargupta.com"],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue