Hi,
We have created a functionality that is working well in our DEV branch, but for some reason I cannot get it to work in our staging/acceptance environment.
In a DnD area we are performing an API call to indicium. It looks like this:
xhr.open('POST', 'https://{{company_url}}/indicium/sf/go_acc/document', true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify(payload));
When we try to upload a file we get a 401 unauthorized error. I've tried changing my user's authorization settings in IAM to RDBMS, Windows and IAM to no avail. I've also tried adding ‘/public/’ in the url to hopefully open to the public, this led to a not found 404 error.
Any other things I might've overlooked that cause this error?
One thing that might be interesting, but I can't find any info on, is that our production environment runs under https://{{company_url}}/universal/ and our acceptation environment runs under https://{{company_url}}/universal_acc/. could this difference in URL cause the authentication error?