I am using angular and when i post data to web api from local machine it will work but when same web api i publish on server i am not able to post data. I am getting 405 (Method Not Allowed). I Create "proxy.conf.js" file in src folder
{
"/api": {
"target": "http://**********.net",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
}
}
and i add it to angular.json
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "********:build",
"proxyConfig": "proxy.config.json"
},
but not change i still getting 405 error when i try to post data to the server