Version: serverless@1.75.1
Plugin: serverless-wsgi
When using this configuration, the auth is set to NONE in the template and cors is missing.
functions:
app:
handler: wsgi_handler.handler
events:
- http: ANY /
cors: true
authorizer: aws_iam
- http: ANY {proxy+}
cors: true
authorizer: aws_iam
Template excerpt:
"ApiGatewayMethodProxyVarAny": {
"Type": "AWS::ApiGateway::Method",
"Properties": {
"HttpMethod": "ANY",
"RequestParameters": {},
"ResourceId": {
"Ref": "ApiGatewayResourceProxyVar"
},
"RestApiId": {
"Ref": "ApiGatewayRestApi"
},
"ApiKeyRequired": false,
"AuthorizationType": "NONE",
"Integration": {
"IntegrationHttpMethod": "POST",
"Type": "AWS_PROXY",
Bug or am I doing something wrong?