-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
server/src/server.py contains this snippet which enables CORS for all origins:
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
This could be a security risk, and is not needed in prod since API calls are made to the same origin.
The development environment, however, will have to be modified for CORS to be completely removed since it directly exposes the backend service at port 5000 for the client to call.
Reactions are currently unavailable