fix: enabling cors

This commit is contained in:
MTG2000
2022-03-26 19:28:59 +03:00
parent b07504a95c
commit 355ef7c105

View File

@@ -1,22 +0,0 @@
custom:
serverless-offline:
httpPort: 8888
corsAllowHeaders: "*"
plugins:
- serverless-offline
service: serverless-graphql
provider:
name: aws
runtime: nodejs12.x
functions:
graphql:
handler: functions/graphql/index.handler
events:
- http:
path: graphql
method: post
- http:
path: graphql
method: get