2 Replies Latest reply on Jul 28, 2017 2:52 PM by adamr RSS
    jthiede Newbie

    Get data from ThingWorx API to Display on an HTML File Using JavaScript

    Hello,

     

    I am trying to get data from the ThingWorx API to display on an HTML file so I can use more custom HTML and CSS. I would like to use the simplest way possible.

     

    I have tried using ajax, but am getting an error that says: "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource." I am not sure how to do this correctly, or if it can even be done.

     

    Ideally I would like to do this using ajax and javascript, but am open to any advice and suggestions.

     

    Thank you,

     

    James