generated from apollographql/typescript-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hi,
Facing an issue in cors, we are not able to allow the Access-Control-Allow-Origin. Please let us know how to add the headers or how to handle the Cors issue. Below added my code snippet.
const { ApolloServer } = require('@apollo/server');
const { startServerAndCreateHandler } = require('@as-integrations/azure-functions');
const server = new ApolloServer({
typeDefs,
resolvers,
csrfPrevention: false,
});
exports.graphqlHandler = startServerAndCreateHandler(server);
Thanks in advance :)
Metadata
Metadata
Assignees
Labels
No labels