Hello,
I have tried looking for previously posted topics on this but have not found any that deal with my issue.
(Reference)
We currently use ServiceDesk Plus and SharePoint on their own domains. I am in the process of trying to build minor functionality between the two in which you can enter documentation on SharePoint and have it sent to ServiceDesk plus for documentation as well. At this time, it specifically revolves around adding a worklog to a request.
I have created a form that utilizes Javascript to allow the user to input the information on SharePoint which is then sent via POST to the ServiceDesk Plus REST API. Whenever you go to submit, though, you are greeted with a CORS policy error:
- Access to XMLHttpRequest at 'http://SD+_URL/api/v3/requests/REQUEST_ID/worklogs' from origin 'http://SHAREPOINT_URL' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I have set the SHAREPOINT_URL to be allowed by ServiceDesk Plus in 'Access-Control-Allow-Origin' and yet I continue to receive the same error.
Would this error have anything to do with SharePoint or could it be a browser issue? I have tried this process on Chrome, Firefox, and Edge.