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

Use window.location for playground default endpoint #122

Open
jorgebay opened this issue May 5, 2020 · 0 comments
Open

Use window.location for playground default endpoint #122

jorgebay opened this issue May 5, 2020 · 0 comments

Comments

@jorgebay
Copy link
Contributor

jorgebay commented May 5, 2020

The GraphQL playground uses http://localhost:<port> by default for the defaultEndpointUrl.

We should use the same window.location protocol and host values as the one used by the user at runtime (using js) to avoid CORS and make sure we use the same address/host name that the user defined.

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