Skip to content

Commit

Permalink
Allow credentials for CORS requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
willrogers committed Jun 23, 2020
1 parent c0d2650 commit 6a13432
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coniql/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def main(args=None) -> None:
cors = aiohttp_cors.setup(app)
for route in app.router.routes():
allow_all = {
"*": aiohttp_cors.ResourceOptions(allow_headers=("*"), max_age=3600,)
"*": aiohttp_cors.ResourceOptions(
allow_headers=("*"), max_age=3600, allow_credentials=True
)
}
cors.add(route, allow_all)

Expand Down

0 comments on commit 6a13432

Please sign in to comment.