Created
May 29, 2015 10:57
-
-
Save sihugh/31382b1a5ceb99e7d19e to your computer and use it in GitHub Desktop.
CRSF Token in SharePoint Web Service Request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var formDigestValue = $("#__REQUESTDIGEST").val(); | |
$.ajax({ | |
headers: { "X-RequestDigest": formDigestValue }, | |
url: url, | |
method: "POST", | |
contentType: "application/json", | |
data: JSON.stringify(data), | |
success: success, | |
error: error | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment