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

enable CORS #6

Open
ltalirz opened this issue May 25, 2021 · 1 comment
Open

enable CORS #6

ltalirz opened this issue May 25, 2021 · 1 comment

Comments

@ltalirz
Copy link
Member

ltalirz commented May 25, 2021

The aiida-core rest api has extremely liberal cross-origin resource sharing policies (just allowing any origin), see
https://github.com/aiidateam/aiida-core/blob/38080c44272a8a5ae24beee7109df9964450a464/aiida/restapi/run_api.py#L91-L93

We can mirror that
https://fastapi.tiangolo.com/tutorial/cors/?h=%20cors#use-corsmiddleware

@ltalirz
Copy link
Member Author

ltalirz commented May 31, 2021

As discussed with @NinadBhat and @chrisjsewell , we will mirror the liberal policy in the default configuration of aiida-restapi

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

No branches or pull requests

1 participant