Quantcast
Channel: SCN : Discussion List - Business Server Pages (BSP)
Viewing all articles
Browse latest Browse all 237

XSRF-protection in BSP application with AJAX support

$
0
0

Dear all,

 

I try to call an BSP via AJAX with activated xsrf-protection. Then I receive a 500 internal server errror. I think it's because the missing security token. My code is:

$.post("set_next_status.htm", { rid: window.xxx.currId, SESSION_TOKEN: oSAPSecu.GetSessionToken() }, function() {              window.xxx.updateTable();            }).fail(function() {              alert("Der Status konnte nicht gändert werden.")            });

How should I insert the XSRF-Token? oSAPSecu.GetSessionToken() returns null.

 

Thanks!


Viewing all articles
Browse latest Browse all 237

Trending Articles



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