mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-04 06:54:27 +01:00
fix: enabling cors
This commit is contained in:
@@ -14,6 +14,7 @@ const server = new ApolloServer({
|
||||
const apolloHandler = server.createHandler({
|
||||
cors: {
|
||||
origin: "*",
|
||||
methods: "*",
|
||||
credentials: true,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user