Skip to content

Commit 0705768

Browse files
authored
Merge pull request #11 from MAhmedcodes/dev
addding deployment cors url
2 parents 54c1a35 + 54b2901 commit 0705768

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/app/core/middleware/security_layer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def setup_security(app: FastAPI):
2020
app.add_middleware(
2121
CORSMiddleware,
2222
# Update with your frontend URLs
23-
allow_origins=["http://localhost:3000", "any other url we need"],
23+
allow_origins=["http://localhost:3000",
24+
"http://http://13.53.39.27/", "any other url we need"],
2425
allow_credentials=True,
2526
allow_methods=["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"],
2627
allow_headers=["*"],

0 commit comments

Comments
 (0)