Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd0cd14

Browse files
authored
Add Vercel app to CORS allowed origins
1 parent 96c3d53 commit bd0cd14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
app.add_middleware(
1313
CORSMiddleware,
14-
allow_origins=["https://danielvor.onrender.com"], # ou ["*"] para todos os domínios
14+
allow_origins=["https://danielvor.onrender.com", "https://danielvor.vercel.app/*"], # ou ["*"] para todos os domínios
1515
allow_credentials=True,
1616
allow_methods=["*"],
1717
allow_headers=["*"],

0 commit comments

Comments
 (0)