Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin '<location>' is therefore not allowed access.Ooh, hmm.
Should we switch the default credentials to same-origin?
https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials
CORS is not my strong suit but that appears to be the correct option. Unless this should be a config thing, as it appears that some people are using cookies while others need an API to be publicly accessible from arbitrary users.
Oh I mean on the GraphiQL side - we can change the way it sends the cookies to avoid the error. We can replace include with same-origin
Yes I agree, sorry if I wasn't clear.
Awesome - mind sending a PR for that?
Can we get a feature bump on this so it can be used?
Not included in v1.1.2
Seems to be solved in v.1.1.6.
Thanks!
Most helpful comment
Can we get a feature bump on this so it can be used?
Not included in v1.1.2