Home Forums Chart Support CORS error when testing demos from a file

CORS error when testing demos from a file

Viewing 2 posts - 1 through 2 (of 2 total)
  • #27048

    With the OHLC financial charts, I’m getting a CORS error when I test from my own index.html file. How can I test the demos with my own files instead of using your site?

    #27082

    @shaping,

    For security reasons, browsers restrict cross-origin requests. Serving JSON file from local webserver and making an AJAX call to it or serving it from CORS enabled JSON hosting service like myjson.com should work fine. Please take a look at this JSFiddle.


    Vishwas R
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.