Skip to content

Commit

Permalink
Cleanup origins passing
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Sep 17, 2024
1 parent 6450e68 commit a382a9b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion ooniapi/services/oonifindings/src/oonifindings/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ async def lifespan(app: FastAPI):
app.add_middleware(
CORSMiddleware,
allow_origin_regex="^https://[-A-Za-z0-9]+(\.test)?\.ooni\.(org|io)$",
allow_origins=origins,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ async def lifespan(app: FastAPI):
)

app.add_middleware(
allow_origins=origins,
allow_origin_regex="^https://[-A-Za-z0-9]+(\.test)?\.ooni\.(org|io)$",
allow_credentials=True,
allow_methods=["*"],
Expand Down
1 change: 0 additions & 1 deletion ooniapi/services/ooniprobe/src/ooniprobe/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ async def lifespan(app: FastAPI):
app.add_middleware(
CORSMiddleware,
allow_origin_regex="^https://[-A-Za-z0-9]+(\.test)?\.ooni\.(org|io)$",
allow_origins=origins,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand Down

0 comments on commit a382a9b

Please sign in to comment.