javascript - 404 error when I pass session ID in Post request from angular js -


My services are hosted on a remote server and I am using the services in the Local Angel JS app. This works fine in the REST request, in which the session ID is not required in the header. When I add session ID to the header, it does not work. Gives me a 404 error.

app.factory ('dashboard', function ($ resource, $ http) {

  returns {GetDashboardData: function (sessionid, id) {warning (session + ' \ N '+ id); var config = {header: {' content-type ':' application / x-www-form-urlencoded ',' session id ': session}}; return $ http.post (' Url goes here Is' id, config);}}});  

This is due to a cross domain in the rest of your API call, in the reverse API call Make changes and it will work fine. You are receiving 404 because the session ID is not accepting on the server ID.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -