-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Micro CORS sandbox "Cannot set headers after they are sent to the client" #5513
Comments
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 Note that even after this is fixed, there's something a bit confusing in how the default graphql path is |
ie, by default, serve 404 on root. This makes it consistent with the other framework integrations. This also means that if you're using the playground or local default landing page, you won't manage to load a UI at an URL that doesn't also serve GraphQL and then get confused when it can't talk to your server. Also fixes #5513, a doc issue around CORS.
ie, by default, serve 404 on root. This makes it consistent with the other framework integrations. This also means that if you're using the playground or local default landing page, you won't manage to load a UI at an URL that doesn't also serve GraphQL and then get confused when it can't talk to your server. Also fixes #5513, a doc issue around CORS.
ie, by default, serve 404 on root. This makes it consistent with the other framework integrations. This also means that if you're using the playground or local default landing page, you won't manage to load a UI at an URL that doesn't also serve GraphQL and then get confused when it can't talk to your server. Also fixes #5513, a doc issue around CORS.
Yes, reproduces the same error.
|
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
The text was updated successfully, but these errors were encountered: