Skip to content

Commit

Permalink
fix: support credentials in CORS requests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 3, 2024
1 parent 2cd139c commit a5546db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion chord_drs/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
application.config.from_object(Config)

# Set up CORS
CORS(application, origins=Config.CORS_ORIGINS)
CORS(
application,
origins=Config.CORS_ORIGINS,
supports_credentials=True,
)

# Attach authz middleware to Flask instance
authz_middleware.attach(application)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "chord-drs"
version = "0.14.2"
version = "0.14.3"
description = "An implementation of a data repository system (as per GA4GH's specs) for the Bento platform."
authors = ["David Lougheed <[email protected]>"]
license = "LGPL-3.0"
Expand Down

0 comments on commit a5546db

Please sign in to comment.