Skip to content

Commit

Permalink
Merge pull request #1493 from Agenta-AI/hotfix/add_vercel_to_origins
Browse files Browse the repository at this point in the history
hotfix/vercel
  • Loading branch information
mmabrouk authored Apr 8, 2024
2 parents c621cd0 + a760f57 commit c3ad6d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agenta-backend/agenta_backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"http://localhost:3001",
"http://0.0.0.0:3000",
"http://0.0.0.0:3001",
"https://*.vercel.app",
]


celery_app = Celery("agenta_app")
celery_app.config_from_object(celery_config)

Expand All @@ -66,6 +66,7 @@ async def lifespan(application: FastAPI, cache=True):
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_origin_regex="https://.*\.vercel\.app",
allow_credentials=True,
allow_methods=["*"],
allow_headers=allow_headers,
Expand Down

0 comments on commit c3ad6d7

Please sign in to comment.