AWS API Gateway removing “Access-Control-Allow-Origin” from .NET generated response header
I have a .NET Core 6.0 AWS Lambda endpoint. I can see via the CloudWatch logs that it’s returning “Access-Control-Allow-Origin” in the response when I serialize the response before it gets returned to the client; e.g.:
AWS API Gateway stripping out “Access-Control-Allow-Origin” from .NET generated response header
I have a .NET Core 6.0 AWS Lambda endpoint. I can see via the CloudWatch logs that it’s returning “Access-Control-Allow-Origin” in the response when I serialize the response before it gets returned to the client; e.g.:
AWS API Gateway stripping out “Access-Control-Allow-Origin” from .NET generated response header
I have a .NET Core 6.0 AWS Lambda endpoint. I can see via the CloudWatch logs that it’s returning “Access-Control-Allow-Origin” in the response when I serialize the response before it gets returned to the client; e.g.: