Skip to content

Failed to load favicon.ico in local dev #263

Description

@trevor-scheer

Given the simplest of Apollo Server instances, run Sandbox and inspect the browser's logs for:

Failed to load resource: the server responded with a status of 400 (Bad Request)
:4000/favicon.ico:1

Repro:

npm init -y
npm i @apollo/server graphql
touch index.js
// index.js
import { ApolloServer } from "@apollo/server";
import { startStandaloneServer } from "@apollo/server/standalone";

const server = new ApolloServer({
  typeDefs: `#graphql
    type Query {
      hello: String
    }
  `,
});

startStandaloneServer(server, { listen: { port: 4000 } }).then(() => {
  console.log("Server running at http://localhost:4000");
});
node index.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions