diff --git a/functions/graphql/index.js b/functions/graphql/index.js index 77596d9..c37ef7a 100644 --- a/functions/graphql/index.js +++ b/functions/graphql/index.js @@ -14,6 +14,7 @@ const server = new ApolloServer({ const apolloHandler = server.createHandler({ cors: { origin: "*", + methods: "*", credentials: true, }, }); diff --git a/serverless.yml b/serverless.yml index 5fa8a9a..a957532 100644 --- a/serverless.yml +++ b/serverless.yml @@ -17,14 +17,6 @@ functions: - http: path: graphql method: post - cors: - origin: "*" - headers: "*" - allowCredentials: false - http: path: graphql method: get - cors: - origin: "*" - headers: "*" - allowCredentials: false