Getting this error:
{
"errorStatusCode": "400",
"errorCode": "ERR_INVALID_ORIGIN",
"errorMessage": "Invalid request origin"
}
When trying to use the post function in suitescript:
post: function post(data) {
return JSON.stringify({
message: data
});
},
Working perfect for the get function.