Forum Discussion

Warren_Brill's avatar
9 years ago

Access Control Issue

I have an API URL that works when pasted into a browser, but when scripted, does not. Loading the page, the browser simply doesn't render anything. Chrome's "Inspect" returns: "XMLHttpRequest canno...
  • PaoloT's avatar
    9 years ago

    Hi Warren_Brill

     

    the issue here is that your script is likely violating the CORS policy. This is a security measure implemented in most browsers. I find that this article may help you understand the problem and what can be done to allow the call. Typically you will need the web server you are calling to return an appropriate Access-Control-Allow-Origin header that allows the call.

     

    Hope it helps,