forked from Glifery/cors-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
42 lines (38 loc) · 860 Bytes
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
service: cors-proxy
plugins:
- serverless-offline
provider:
name: aws
runtime: nodejs12.x
timeout: 30
stage: dev
region: us-east-1
environment:
foo: 123
apiGateway:
shouldStartNameWithService: true
functions:
lambda:
name: cors-proxy
handler: handler.corsProxy
events:
- http:
path: ''
method: get
cors:
origin: '*'
methods: 'GET'
headers:
- Content-Type
- cb-access-key
- cb-access-sign
- cb-access-timestamp
- cb-access-passphrase
- x-mbx-apikey
- Access-Control-Allow-Headers
- Access-Control-Allow-Origin
- Access-Control-Allow-Credentials
- http:
path: ''
method: post
cors: true