Skip to content

Commit

Permalink
CORS modification
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobin Rajaei committed Jan 21, 2025
1 parent d49683f commit 4aeff16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
app = FastAPI()

origins = [
"http://localhost:5173",
"http://127.0.0.1:5173",
"*",
]

#CORS
Expand Down Expand Up @@ -70,4 +69,4 @@ async def get_all_methods():

@app.get("/methods/loaders", response_model=AllTemplates)
async def get_loader_method():
return standard_tomo_loader
return standard_tomo_loader

0 comments on commit 4aeff16

Please sign in to comment.