Skip to content

Commit 75f119b

Browse files
authored
Update template.yml (#97)
fix transport headers Signed-off-by: James Pether Sörling <pethers@users.noreply.github.com>
1 parent d933280 commit 75f119b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cloudformation/template.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,12 @@ Resources:
571571
IntegrationHttpMethod: POST
572572
IntegrationResponses:
573573
- StatusCode: 200
574+
ResponseTemplates:
575+
application/json: ""
576+
ResponseParameters:
577+
method.response.header.Strict-Transport-Security: "'max-age=31536000; includeSubDomains'"
578+
method.response.header.X-Content-Type-Options: "'nosniff'"
579+
method.response.header.Cache-Control: "'no-store, no-cache, must-revalidate, private'"
574580
Type: AWS
575581
Uri: !Sub 'arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${Lambda.Arn}/invocations'
576582
# RequestValidatorId: !Ref ApiRequestValidator
@@ -579,6 +585,12 @@ Resources:
579585
!Ref RequestModel
580586
MethodResponses:
581587
- StatusCode: 200
588+
ResponseModels:
589+
application/json: Empty
590+
ResponseParameters:
591+
method.response.header.Strict-Transport-Security: true
592+
method.response.header.X-Content-Type-Options: true
593+
method.response.header.Cache-Control: true
582594
OperationName: 'lambda'
583595
ResourceId: !Ref ApiResource
584596
RestApiId: !Ref RestApi

0 commit comments

Comments
 (0)