testing cors issue

This commit is contained in:
MTG2000
2022-03-26 16:07:26 +03:00
parent 2e6520d1c7
commit 3390a998da
2 changed files with 1 additions and 23 deletions

1
.gitignore vendored
View File

@@ -28,3 +28,4 @@ yarn-debug.log*
yarn-error.log*
TODO
serverless.yml

View File

@@ -1,23 +0,0 @@
custom:
serverless-offline:
httpPort: 8888
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
cors: true
- http:
path: graphql
method: get
cors: true