DotNet 8 Client Side rendering fails #1701
Labels
bug
This issue is a bug.
closing-soon
This issue will automatically close in 4 days unless further comments are made.
module/lambda-client-lib
response-requested
Waiting on additional info and feedback. Will move to close soon in 7 days.
Describe the bug
Ref doc https://learn.microsoft.com/en-us/aspnet/core/blazor/components/integration?view=aspnetcore-8.0
I created a Lambda C# Application with the Server Side Rendering (/welcome) which works fine.
Then I extended it to use the client side rendering (/counter) which works fine when deployed locally, but when run in AWS lambda, blazor.web.js gets a 403 (so does the {APPNAME}.styles.css).
I have LambdaFullAccecss for the IAM role.
How do we get Client Side Rendering working in a Razor Web App in Lambda?
Expected Behavior
To behave as per running locally.
Current Behavior
https://xxxxx.execute-api.us-east-1.amazonaws.com/_framework/blazor.web.js gives a 403 (forbidden)
Reproduction Steps
bv_la_ssr8.zip
Sample project included. Runs in Visual Studio 17.9.3 locally.
When deployed to Lambda (using AWS Toolkit 1.49.0.0) /counter route fails to load blazor.web.js
Possible Solution
Unknown
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
Standard .NET Core sample as per Microsoft
Targeted .NET Platform
.NET Core 8
Operating System and version
Windows 11
The text was updated successfully, but these errors were encountered: