Skip to content

Commit

Permalink
Fix CORS origin list conversion (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinvlad authored Dec 6, 2023
1 parent fceab8a commit b865f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def create_app() -> Quart:
app = Quart(__name__)

origins = filter(None, os.getenv("CORS_ORIGINS", "*").split(","))
app = cors(app, allow_origin=origins)
app = cors(app, allow_origin=list(origins))

app.config.from_mapping(
SECRET_KEY=secrets.token_hex(16), DATABASE=firestore.AsyncClient()
Expand Down

0 comments on commit b865f1e

Please sign in to comment.