Skip to content

Commit d15e331

Browse files
author
uid10804
committed
fix(server): fix cors issue for post, put, patch events
1 parent 58a18ed commit d15e331

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/cli/template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dependencies": {
88
"@types/express": "4.17.1",
99
"express": "4.17.1",
10-
"json-serverless-lib": "^1.5.20",
10+
"json-serverless-lib": "^1.5.19",
1111
"serverless-http": "^2.3.0"
1212
},
1313
"devDependencies": {

packages/cli/template/serverless.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,10 @@ functions:
5858
- http:
5959
path: /
6060
method: ANY
61-
cors: true
6261
private: ${self:custom.appconfig.enableApiKeyAuth}
6362
- http:
6463
path: "{proxy+}"
6564
method: ANY
66-
cors: true
6765
private: ${self:custom.appconfig.enableApiKeyAuth}
6866
resources:
6967
Resources:

0 commit comments

Comments
 (0)