Skip to content

Commit

Permalink
fix: cors (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai authored Jul 3, 2024
2 parents c297d32 + a533363 commit ee8f1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
secret_key = session_secret_key,
)

cors_origins = ["http://0.0.0.0:3000", "http://localhost:3000"] + cors_origins_whitelist.split(',')
cors_origins = ["*"] if cors_origins_whitelist is None else cors_origins_whitelist.split(',')

app.add_middleware(
CORSMiddleware,
Expand Down

0 comments on commit ee8f1e4

Please sign in to comment.