CreoJs HTTP POST request issue
Good afternoon
I am using Creo Parametric Release 8.0 and Datecode8.0.7.0
I' m using CreoJs in order to automate some tasks in Creo.
From CreoJs, I'm trying to make a call to Windchill REST services.
It works well for a GET request by using "downloadJSON" function from Additional API Features Introduced in Creo.JS in CreoJs user guide.
My issue is when I want to do a POST request.
I use "uploadJSON" function to be able to send a JSON object with body definition and the nonce token in the header.
It always return an Invalid Nonce token error.
Is someone could help me on the correct use of the uploadJSON function to send a POST request with headers?
Or what are built-in function of CreoJs to perform a POST request?
Here are the errors that I faced
"statusMessage":"400: {\"error\":{\"code\":\"INVALID_NONCE\",\"message\":\"A potential security problem was detected. Refresh the page and try again. If the problem persists, contact your administrator.\"}}"

