I experienced the same issue. In my case, an authorization filter was redirecting the request. I had to adjust the filter logic to fix it.