I'm trying to make a POST call via AJAX to create an item on my Sharepoint site.
I've got the call to .../_api/contextinfo and it is indeed returning a FormDigestValue.
Using this value, I'm adding it to my header, X-RequestDigest.
When I hit the code, I get a failure:
{code: "-2130575251, Microsoft.SharePoint.SPException", message: {lang: "en-US",…}}
"The security validation for this page is invalid and might be corrupted. Please use your web browser's Back button to try your operation again."
I've tried this in Postman, and again, same problem.
Everywhere online says you need the FormDigestValue, which I have, and am using it correctly (I've done this via Postman on another site). But it still doesn't work.
Any suggestions would be great!