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?



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:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.