So I've made this .net core api. And have a weird issue.
When I make a request it works and I get correct data back. Then, when I do exactly the same request, I get an 405 (Method not Allowed).
So I thought I capture the method in a custom error page to see what it captures.
await context.HttpContext.Response.WriteAsync(
"Status code page 405, Method: " + context.HttpContext.Request.Method);
Now the weird part. For the succesfull request it captures "GET", for the failed request it captures "T" (just 1 letter). While the request are exactly the same.
How on earth is this possible??
See this: [![enter image description here][1]][1]