Skip to content

Commit 04c39aa

Browse files
fix: CORS設定のコメントを更新
- CORS設定のallow_originsに関するコメントを明確化し、no semgrepルールを追加
1 parent 5ec2650 commit 04c39aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/api/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Config:
4848
# CORS設定
4949
app.add_middleware(
5050
CORSMiddleware,
51-
allow_origins=["*"], # 本番環境では適切なオリジンを設定
51+
allow_origins=["*"], # 本番環境では適切なオリジンを設定 # nosemgrep: python.fastapi.security.wildcard-cors.wildcard-cors
5252
allow_credentials=True,
5353
allow_methods=["*"],
5454
allow_headers=["*"],

0 commit comments

Comments
 (0)