fix: enabling cors

This commit is contained in:
MTG2000
2022-03-26 19:14:38 +03:00
parent 0392dc1fd3
commit b07504a95c
2 changed files with 1 additions and 8 deletions

View File

@@ -14,6 +14,7 @@ const server = new ApolloServer({
const apolloHandler = server.createHandler({
cors: {
origin: "*",
methods: "*",
credentials: true,
},
});

View File

@@ -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