Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

fix(cors): allow tryaisoc.com origin in api and agents services

Beenu Arorad90d4ea45e0b
diff --git a/services/agents/app/main.py b/services/agents/app/main.py
index 269baabbe..a402fc251 100644
--- a/services/agents/app/main.py
+++ b/services/agents/app/main.py
@@ -104,7 +104,7 @@ app = FastAPI(
# the CORS_ORIGINS env var; default keeps localhost dev usable out of the box.
_cors_origins_raw = os.getenv(
"CORS_ORIGINS",
- "http://localhost:3000,http://localhost:3001,http://127.0.0.1:3000",
+ "http://localhost:3000,http://localhost:3001,http://127.0.0.1:3000,https://tryaisoc.com,https://www.tryaisoc.com",
)
_cors_origins = [o.strip() for o in _cors_origins_raw.split(",") if o.strip()]
app.add_middleware(
diff --git a/services/api/app/core/config.py b/services/api/app/core/config.py
index 799cd15b6..4c45fc0c1 100644
--- a/services/api/app/core/config.py
+++ b/services/api/app/core/config.py
@@ -127,7 +127,12 @@ class Settings(BaseSettings):
QDRANT_URL: str = "http://localhost:6333"
# CORS
- CORS_ORIGINS: list[str] = ["http://localhost:3000", "http://localhost:3001"]
+ CORS_ORIGINS: list[str] = [
+ "http://localhost:3000",
+ "http://localhost:3001",
+ "https://tryaisoc.com",
+ "https://www.tryaisoc.com",
+ ]
# Observability
OTEL_ENDPOINT: str = ""