Configure CORS
Closed this issue · 3 comments
filipenevola commented
Configure CORS
JesseCarlos commented
@filipenevola Can you assign this issue to me?
filipenevola commented
Yep, this is easy
import cors from "cors";
const schema = makeExecutableSchema({
typeDefs,
resolvers
});
createApolloServer(
{
schema
},
{
configServer: graphQLServer => graphQLServer.use(cors())
}
);
JesseCarlos commented
Yes, I know