Skip to content

Commit

Permalink
Merge pull request #1474 from Enterprise-CMCS/updateheader
Browse files Browse the repository at this point in the history
Update serverless.yml
  • Loading branch information
Dark-Knight-1313 committed Jun 10, 2024
2 parents 415ec76 + 47b6296 commit 4c8f296
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions services/app-api/resources/api-gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Resources:
ResponseParameters:
gatewayresponse.header.Access-Control-Allow-Origin: "'*'"
gatewayresponse.header.Access-Control-Allow-Headers: "'*'"
gatewayresponse.header.X-Content-Type-Options: "'nosniff'"
ResponseType: DEFAULT_4XX
RestApiId:
Ref: "ApiGatewayRestApi"
Expand Down
2 changes: 1 addition & 1 deletion services/ui/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ resources:
headers['strict-transport-security'] = { value: 'max-age=63072000; includeSubdomains; preload'};
headers['x-frame-options'] = { value: 'SAMEORIGIN'};
headers['x-frame-options'] = { value: 'DENY'};
headers['x-content-type-options'] = { value: 'NOSNIFF' };
headers['x-content-type-options'] = { value: 'nosniff' };
return response;
}
FunctionConfig:
Expand Down

0 comments on commit 4c8f296

Please sign in to comment.