The security validation for this page is invalid and might be corrupted error in SharePoint 2013 Rest API

This SharePoint tutorial explains how to solve error Microsoft.SharePoint.SPException. The security validation for this page is invalid and might have corrupted. Please your browser’s back button to try your operation again. status 403, FORBIDDEN.

Recently while I was trying to create a group by using Rest API in SharePoint 2013, I got the following error message. Microsoft.SharePoint.SPException. The security validation for this page is invalid and might have corrupted. Please your browser’s back button to try your operation again. status 403, FORBIDDEN. The error can come in SharePoint 2013/2016 or SharePoint Online.

The error was coming like below:

 The security validation for this page is invalid and might be corrupted error in SharePoint 2013 Rest API

The security validation for this page is invalid and might be corrupted error in SharePoint 2013 Rest API

This error usually comes when you any POST Rest API call.

Solution to the security validation for this page is invalid and might be corrupted rest SharePoint

Add the “X-RequestDigest” header, with the value of the hidden input field “__REQUESTDIGEST” which is the form digest value. Like below:
headers: {
“Accept”: “application/json; odata=verbose”,
“X-RequestDigest”: $(‘#__REQUESTDIGEST’).val()
}

You may like following SharePoint Rest API tutorial:

Once you add “X-RequestDigest”: $(‘#__REQUESTDIGEST’).val(), then the error the security validation for this page is invalid and might be corrupted rest SharePoint will not appear.

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

  • Arun says:

    Eta tathapi asuchi bhai kan kariba??

  • >