Skip to content

Commit b52840f

Browse files
authored
Merge pull request #26 from Sheldenburg/bug/frontend-cors-error
retrict the origin to be localhost and vercel
2 parents 59faed9 + 2a419c9 commit b52840f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def read_root():
3939
# allow_headers=["*"],
4040
# )
4141

42-
origins = ["http://localhost:3000", "*", "https://ai-engineer-template.vercel.app"]
42+
origins = ["http://localhost:3000", "https://ai-engineer-template.vercel.app"]
4343
app.add_middleware(
4444
CORSMiddleware,
4545
allow_origins=origins,

0 commit comments

Comments
 (0)