Description
Describe the bug
If you include a .wasm file in a lambda function (either standalone or in the wwwroot/_framework directory) then the API Gateway does not deliver the .wasm file intact to the caller.
I have successfully created a Blazor SSR and Webassembly project into Lambda but in order to do this, I had to place all of the .wasm files into an S3 bucket and serve them using API Gateway S3 integration.
I could not find a way to get the Lambda function to deliver them correctly to the client (they appear to get base64 encoded).
Using the standard dotnet Lambda proxy route, the Integration Reponse cannot be altered.
Expected Behavior
If I deploy a Blazor Web App to Lambda with webassembly, I expect the application to be able to deliver the .wasm files from the lambda function correctly to the client.
Current Behavior
Using the standard dotnet proxy route, the Integration response cannot be altered and it appears that the default configuration does not handle application/wasm files correctly as binary.
Reproduction Steps
Create a dotnet lambda application with a webassembly client and deploy to Lambda. All of the .wasm files will fail SHA-256 integrity checks because they have not been correctly handled by the routing.
Possible Solution
Change the proxy to allow application/wasm files?
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
Standard DotNet lambda project for application
Targeted .NET Platform
.NET Framework 8.0
Operating System and version
Windows 11