When accessing an iframe using JavaScript or executing any JSON AJAX requests, you can only access or respond if they are in the same domain. Otherwise, the server must explicitly install:
Access-Control-Allow-Origin: *
in the headlines. You can also provide a list of allowed domains, separated by commas, instead of *.
So, you should test this in a development environment where the web page and data source are in the same domain, for example localhost, otherwise you canβt do anything unless you run chrome with --disable -web-security
redline
source share