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

Allow application to work with localhost calls #145

Open
yarl opened this issue May 18, 2019 · 0 comments
Open

Allow application to work with localhost calls #145

yarl opened this issue May 18, 2019 · 0 comments

Comments

@yarl
Copy link
Member

yarl commented May 18, 2019

Right now api is rejecting calls from localhost.

Access to XMLHttpRequest at 'http://tools.wmflabs.org/montage-dev/v1/admin' from origin 'http://localhost:8000' has been blocked by CORS policy: The response is invalid.

We should allow it, so there is no need to set up database and run local app when client app is on localhost. As a security thing, we can add extra param with secret word that will be posted in GET/POST headers.

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

No branches or pull requests

1 participant