Forum Discussion
mbeenen
Sep 06, 2023Copper Contributor
403 Forbidden on Rest-API when trying to use Post or Patch
Hello everyone, I'm trying to use the REST-API of Sharepoint (On-Premise). When I use Get-Requests everything is just fine. As soon as I try to change data using either a Patch or Post Request I ...
TraKieu
Mar 14, 2024Copper Contributor
Hi,
I got the same problem like you. I wonder if you have any solution to this.
Thank you and have a nice day,
Tra
- mbeenenMar 18, 2024Copper ContributorHi Tra,
my problem was, that each request was made with a new connection. You have to keep open the connection you used for getting the XRequestDigest and you need to request a new Digest, if that connection ever closes unexpectedly.
Have a nice day,
Max