We developed a middleware service Web API app in .NET 6 with several endpoints and deployed it to Azure. We get a strange error with an endpoint that implements a POST
method.
If we change the version of the endpoint from v2.1 to v3, Azure returns a http 403 error – it works perfectly in local environment.
To recap:
{{Baseurl}}/bookings/api/v2.1/checkout/nexi -> Ok (200)
{{Baseurl}}/bookings/api/v3/checkout/nexi -> Ko 403
In the controller we have updated just the version no other changes are present.
How is it possible that azure stop the request on V3 version of the API? All endpoints, except this one, work perfectly.
We found out that the problem was an object in the request but we still don’t understand why this is a problem only with v3 version of the endpoint
oiradIta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2