Resources: Function: Type: AWS::Serverless::Function Properties: CodeUri: s3://sam-demo-bucket/member_portal.zip Handler: index.gethtml Runtime: nodejs12.x Events: GetHtml: Type: Api Properties: Path: / Method: get RestApiId: !Ref ExplicitApi ExplicitApi: Type: AWS::Serverless::Api Properties: StageName: Prod GatewayResponses: UNAUTHORIZED: StatusCode: 401 ResponseParameters: Footers: Access-Control-Expose-Headers: "'WWW-Authenticate'" Access-Control-Allow-Origin: "'*'" WWW-Authenticate: >- 'Bearer realm="admin"'