mirror of https://github.com/kortix-ai/suna.git
Merge branch 'main' of https://github.com/escapade-mckv/suna
This commit is contained in:
commit
9d7a1164d4
|
@ -105,15 +105,12 @@ async def log_requests_middleware(request: Request, call_next):
|
|||
raise
|
||||
|
||||
# Define allowed origins based on environment
|
||||
allowed_origins = ["https://www.suna.so", "https://suna.so", "https://staging.suna.so", "http://localhost:3000"]
|
||||
allowed_origins = ["https://www.suna.so", "https://suna.so", "http://localhost:3000"]
|
||||
|
||||
# Add staging-specific origins
|
||||
if config.ENV_MODE == EnvMode.STAGING:
|
||||
allowed_origins.append("http://localhost:3000")
|
||||
|
||||
# Add local-specific origins
|
||||
if config.ENV_MODE == EnvMode.LOCAL:
|
||||
allowed_origins.append("http://localhost:3000")
|
||||
allowed_origins.append("https://suna-*-prjcts.vercel.app")
|
||||
allowed_origins.append("https://staging.suna.so")
|
||||
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
|
|
Loading…
Reference in New Issue