Skip to content

Commit

Permalink
Update api-gateway.yml
Browse files Browse the repository at this point in the history
Another addition to set the x-Content-Type-Options to nosniff
  • Loading branch information
Dark-Knight-1313 committed Jun 8, 2024
1 parent dd25f4e commit 6c7b405
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions services/app-api/resources/api-gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ Resources:
ResponseParameters:
gatewayresponse.header.Access-Control-Allow-Origin: "'*'"
gatewayresponse.header.Access-Control-Allow-Headers: "'*'"
Type: 'AWS::ApiGateway::GatewayResponse'
Properties:
ResponseParameters:
gatewayresponse.header.X-Content-Type-Options: "'nosniff'"
ResponseType: DEFAULT_4XX
RestApiId:
Ref: 'ApiGatewayRestApi'
ResponseType: DEFAULT_5XX
RestApiId:
Ref: "ApiGatewayRestApi"
Expand Down

0 comments on commit 6c7b405

Please sign in to comment.