You need to change your web.config, the endpoint allows iis to think that you are accessing an image.
Add the following to system.webServer / handlers (web.config)
<add name="ApiURIs-ISAPI-Integrated-4.0" path="/api/*" verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
Another suggestion is to set RunAllManagedModulesForAllRequests to true, but I would not recommend this. All static assets will be processed through .net code, and then :)
I see in your question that you checked the linked links. But are you sure? Because I walked past this in the past and above, this is my decision ...
source share