ASP.NET Core 8 Web API throws error while sending POST request response data to Blazor web app
I’m in the process of developing a web app using an ASP.NET Core Web API (in a Docker container) and a separate Blazor web app. I’ve added individual user account functionality for authorization/authentication using Jwt Bearer tokens. Using the API’s auth endpoints in Swagger works as expected. However, when trying to call the API with POST
or PUT
requests in the Blazor web app, an error is thrown by both the API and the app. GET
requests are working correctly and return data.
ASP.NET Core API throws error while sending POST request response data to Blazor Web App (.NET 8)
I’m in the process of developing a web app using an ASP.NET Core API (in a docker container) and a separate Blazor Web App. I’ve added individual user account functionality for authorization/authentication using Jwt Bearer tokens. Using the API’s auth endpoints in Swagger works as expected. However, when trying to call the API with POST or PUT requests in the Blazor Web App, an error is thrown by both the API and the app. GET requests are working correctly and return data.