Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cors handling with aiohttp-cors #32

Merged
merged 5 commits into from
Mar 27, 2020
Merged

Cors handling with aiohttp-cors #32

merged 5 commits into from
Mar 27, 2020

Conversation

loichuder
Copy link
Contributor

No description provided.

app.router.add_route('OPTIONS', '/datasets/{id}/acls', GET_ACLs)

# Add CORS to all routes
cors = aiohttp_cors.setup(app, defaults={"*": aiohttp_cors.ResourceOptions(allow_credentials=True, expose_headers="*", allow_headers="*",)})
Copy link
Contributor Author

@loichuder loichuder Mar 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, I hard-coded the config but you might want to handle it here differently.

@jreadey jreadey merged commit 0c8e601 into HDFGroup:master Mar 27, 2020
@jreadey
Copy link
Member

jreadey commented Mar 28, 2020

@loichuder - somehow the CORS headers are not getting added now (Python 3.8 incompat?), so I added them back as a quick fix: cdd4524.

Could you take a look and see what's up with aiohttp-cors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants