Quantcast
Channel: SCN : All Content - SAP for Mobile
Viewing all articles
Browse latest Browse all 6147

SAPUI5 OData update error CSRF Token Failed

$
0
0

I'm getting an error when I do an update on my odata.  Below is my code snippet:

 

var sServiceUrl = "serviceURL";

        // Contact Model

        var updateQntModel = new sap.ui.model.odata.ODataModel(sServiceUrl, false, "usrname", "password");

      

        var oEntry = {};

        oEntry.fieldval = "14";

        var oParams = {};

        oParams.fnSuccess = function(){ alert("Update successful");};

        oParams.fnError = function(){alert("Update failed");};

              

        updateQntModel.update("/sPath(field='2222',field2='333',field3='2222')", oEntry, oParams);

 

The error I am getting: CSRF token validation failed

 

Anyone have an idea what's causing this?

 

Tags edited by: Michael Appleby


Viewing all articles
Browse latest Browse all 6147

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>