Skip to content

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

Merged
glasser merged 1 commit into
mainfrom
glasser/micro-fixes
Jul 20, 2021
Merged

apollo-server-micro: only serve landing page from graphql path#5516
glasser merged 1 commit into
mainfrom
glasser/micro-fixes

Conversation

@glasser

@glasser glasser commented Jul 20, 2021

Copy link
Copy Markdown
Member

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 force-pushed the glasser/micro-fixes branch from 73f4144 to 74f0aa6 Compare July 20, 2021 05:55
@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