sls-helper-plugin-janis
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -9,2 +9,6 @@ # Changelog | ||
## [2.1.0] - 2020-02-14 | ||
### Added | ||
- Access denied API Gateway response resource added with CORS headers | ||
## [2.0.0] - 2020-02-10 | ||
@@ -11,0 +15,0 @@ ### Added |
@@ -200,2 +200,19 @@ 'use strict'; | ||
} | ||
}, | ||
accessDeniedResponse: { | ||
Type: 'AWS::ApiGateway::GatewayResponse', | ||
Properties: { | ||
ResponseParameters: { | ||
'gatewayresponse.header.Access-Control-Allow-Origin': 'method.request.header.Origin' | ||
}, | ||
ResponseTemplates: { | ||
'application/json': '{"message":$context.error.messageString,"validationError":"$context.error.validationErrorString"}' | ||
}, | ||
ResponseType: 'ACCESS_DENIED', | ||
RestApiId: { | ||
Ref: 'ApiGatewayRestApi' | ||
}, | ||
StatusCode: '403' | ||
} | ||
} | ||
@@ -202,0 +219,0 @@ |
{ | ||
"name": "sls-helper-plugin-janis", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "A Serverless Helper plugin to add custom helpers for JANIS Commerce", | ||
@@ -5,0 +5,0 @@ "main": "lib/plugin.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33762
784