Skip to content

Commit

Permalink
fix(server): fix cors issue for post, put, patch events
Browse files Browse the repository at this point in the history
  • Loading branch information
uid10804 committed Jan 25, 2020
1 parent 58a18ed commit d15e331
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"@types/express": "4.17.1",
"express": "4.17.1",
"json-serverless-lib": "^1.5.20",
"json-serverless-lib": "^1.5.19",
"serverless-http": "^2.3.0"
},
"devDependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/cli/template/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,10 @@ functions:
- http:
path: /
method: ANY
cors: true
private: ${self:custom.appconfig.enableApiKeyAuth}
- http:
path: "{proxy+}"
method: ANY
cors: true
private: ${self:custom.appconfig.enableApiKeyAuth}
resources:
Resources:
Expand Down

0 comments on commit d15e331

Please sign in to comment.