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

apollo-server-micro: only serve landing page from graphql path #5516

Merged
merged 1 commit into from Jul 20, 2021

Conversation

glasser
Copy link
Member

@glasser glasser commented Jul 20, 2021

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.
@glasser glasser enabled auto-merge (squash) July 20, 2021 05:55
@glasser glasser merged commit 0e79e13 into main Jul 20, 2021
@glasser glasser deleted the glasser/micro-fixes branch July 20, 2021 06:01
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Micro CORS sandbox "Cannot set headers after they are sent to the client"
1 participant