MVC-Web API: 405 method not allowed
So, I am stuck in a strange behavior, that is, I am able to send(or POST) data using Postman (plugin of chrome) or using RESTClient(extension of Firefox) , but not able to send it from my html file which lies outside the project. It shows following error when i open the html in chrome: OPTIONS http://localhost:1176/api/user/ 405 (Method Not Allowed) XMLHttpRequest cannot load http://localhost:1176/api/user/. Invalid HTTP status code 405 I am not able to make out why is this happening. Following are the details, you might need to help me solve my error: UserController.cs: using System; using