I have html page in an app, I want to submit data to sharepoint using REST, so I don't have access to
$("#__REQUESTDIGEST"). How do I get the request digest from my html page?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
There are situations/scenarios where the request digest is not available, for instance when you are developing a single page app. So in this case, it's your app code's responsibility to retrieve the value and refresh it. Please see this blog post: