Skip to content

Commit d0d7f52

Browse files
SkylarKeltyclaude
andcommitted
Remove redundant or [] in CORS allow_origins
list(tuple()) already returns [], so the or [] fallback never triggers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b8ca494 commit d0d7f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

artemis/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _research_preset_config(settings: Settings, preset: str) -> ResearchPresetCo
150150

151151
app.add_middleware(
152152
CORSMiddleware,
153-
allow_origins=list(initial_settings.allowed_origins) or [],
153+
allow_origins=list(initial_settings.allowed_origins),
154154
allow_credentials=False,
155155
allow_methods=["GET", "POST"],
156156
allow_headers=["Authorization", "Content-Type"],

0 commit comments

Comments
 (0)