Add tasko client url in allowed origin
This commit is contained in:
parent
3439cb7376
commit
8094192d7a
@ -15,10 +15,12 @@ app = FastAPI(title="Tasko API", version="1.0.0")
|
|||||||
# Initialize database
|
# Initialize database
|
||||||
init_db()
|
init_db()
|
||||||
|
|
||||||
|
allowed_origins = ["http://localhost:5173", "https://tasko.dvirlabs.com"]
|
||||||
|
|
||||||
# Configure CORS
|
# Configure CORS
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=["http://localhost:5173"],
|
allow_origins=allowed_origins,
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user