cassandra-data-apis icon indicating copy to clipboard operation
cassandra-data-apis copied to clipboard

Use window.location for playground default endpoint

Open jorgebay opened this issue 5 years ago • 0 comments

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.

jorgebay avatar May 05 '20 09:05 jorgebay