Closed RamonDonnell closed 3 years ago
Can reproduce by replacing POST with OPTIONS in your URL line.
Looks like this is just how micro-cors works; the README should suggest actually sending a response instead of res.end()
, I guess. Will fix.
Note that even after this is fixed, there's something a bit confusing in how the default graphql path is /graphql
but (unlike all the other web server integrations) apollo-server-micro ignores the path
for deciding whether to serve the landing page... but then the landing page lets you go to a sandbox that won't actually work because it's not on the right path. Should clean that up.
Can reproduce by replacing POST with OPTIONS in your URL line.
Yes, reproduces the same error.
curl --request OPTIONS --url http://localhost:3000/graphql
Trying upgrade AS2 to AS3 using vercel serverless functions and apollo-server-micro. Sandbox doesn't connect to localhost server.
To Reproduce:
npm i; npm start
Note local curl query works