Reputation: 1
I would like to call my API from an application to get data from my database.
I wrote an API in ASP.NET Core 2.1 and decided to migrate it to .NET 6.0. The result is returned as a JsonApi.
The API is working fine from Swagger. There is no error.
But if I want to call it from navigator or from an other application, I get an http 406 error and I don't understand why.
I didn't have this error when my API was running on .NET Core 2.1. It worked fine.
Upvotes: 0
Views: 11