I have a page in mvc that calls a method in webapi (another project inside the solution), it happens that in localhost everything works normally, when it goes homologation, when calling the method in api, it excute everything correctly, does what has to do, but the return of ajax comes as an error, just as an error msg (even doing what it has to do) Can someone help me? Obs: Remembering that the method worked on localhost, only on the homologation server is giving error (error, but even with error executes the method) call ajax:
Methodnotapi: