Skip to content

Commit

Permalink
Update wildcard-cors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
theinfosecguy authored Dec 13, 2023
1 parent 773b896 commit 74130e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/fastapi/security/wildcard-cors.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

app.add_middleware(
CORSMiddleware,
# rule-id: wildcard-cors
# ruleid: wildcard-cors
allow_origins=origins,
allow_credentials=True,
allow=["*"]
Expand All @@ -17,7 +17,7 @@

app.add_middleware(
CORSMiddleware,
# rule-id: wildcard-cors
# ruleid: wildcard-cors
allow_origins=["*"],
allow_credentials=True,
allow=["*"]
Expand All @@ -26,7 +26,7 @@

app.add_middleware(
CORSMiddleware,
# ok-id: wildcard-cors
# ok: wildcard-cors
allow_origins=["https://github.com"],
allow_credentials=True,
allow=["*"]
Expand Down

0 comments on commit 74130e9

Please sign in to comment.