Forum Discussion

Andrew Whitney's avatar
Andrew Whitney
New Member
10 years ago

Service Desk API

I am having problems connecting to the Service Desk API, I have testing my calls using PostMan and they all work fine. However when i test from my localhost i am getting issues related to same origin policy. Does anyone know of a workaround for this?
  • Is this still the case? I am in a env where i need to implement gotoassist through javascript because the backend (server) is precompiled 3rd party app with only access to modify template files. If there is any other way, people do it, let me know.
  • Thanks Jemmy. I will go ahead and work on proxying requests in ASP. When you say near future, is their a definitive timeline for this?
  • jemmyw's avatar
    jemmyw
    Active Contributor
    Hi Andrew, we don't have cross-origin headers at the moment, although we may add them in the near future. What this means is that, as with many APIs, you cannot make the call directly from Javascript on a webpage because of browser security. The workaround would be to proxy the requests through the server hosting the website, using PHP, Rails, node.js, ASP, or whatever technology stack it is running on.