79581075

Date: 2025-04-18 13:04:29
Score: 2
Natty:
Report link

I was able to solve the problem. I was using [HttpPost("api/orders")] to identify the action in my api controller. It turns out the my webhost's server sees the api as a protected keyword and throws the error. I changed the code to read [HttpPost("server/orders")] and got it to work.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: BY320fo