@middy/http-cors 2.5.3 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -43,14 +43,14 @@ npm install --save @middy/http-cors
|
|
|
43
43
|
|
|
44
44
|
- `credentials` (bool) (optional): if true, sets `Access-Control-Allow-Credentials` (default `false`)
|
|
45
45
|
- `headers` (string) (optional): value to put in `Access-Control-Allow-Headers` (default: `false`)
|
|
46
|
-
- `methods` (string) (optional): value to put in `Access-Control-Allow-
|
|
46
|
+
- `methods` (string) (optional): value to put in `Access-Control-Allow-Methods` (default: `false`)
|
|
47
47
|
- `getOrigin` (function(incomingOrigin:string, options)) (optional): take full control of the generating the returned origin. Defaults to using the origin or origins option.
|
|
48
48
|
- `origin` (string) (optional): origin to put in the header (default: "`*`")
|
|
49
49
|
- `origins` (array) (optional): An array of allowed origins. The incoming origin is matched against the list and is returned if present.
|
|
50
50
|
- `exposeHeaders` (string) (optional): value to put in `Access-Control-Expose-Headers` (default: `false`)
|
|
51
51
|
- `maxAge` (string) (optional): value to put in Access-Control-Max-Age header (default: `null`)
|
|
52
52
|
- `requestHeaders` (string) (optional): value to put in `Access-Control-Request-Headers` (default: `false`)
|
|
53
|
-
- `requestMethods` (string) (optional): value to put in `Access-Control-Request-
|
|
53
|
+
- `requestMethods` (string) (optional): value to put in `Access-Control-Request-Methods` (default: `false`)
|
|
54
54
|
- `cacheControl` (string) (optional): value to put in Cache-Control header on pre-flight (OPTIONS) requests (default: `null`)
|
|
55
55
|
|
|
56
56
|
```javascript
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/http-cors",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"description": "CORS (Cross-Origin Resource Sharing) middleware for the middy framework",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"engines": {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"url": "https://github.com/middyjs/middy/issues"
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/middyjs/middy#readme",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "a4134a579c757a9fdfed3006877ba2c0ec8a2cfa",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@middy/util": "^2.5.
|
|
49
|
+
"@middy/util": "^2.5.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@middy/core": "^2.5.
|
|
52
|
+
"@middy/core": "^2.5.4"
|
|
53
53
|
}
|
|
54
54
|
}
|