Quantcast
Viewing all articles
Browse latest Browse all 82152

sAjaxSource set to a static file on Amazon S3

Hello,

Hopefully this is a quick one. I am using a static json file for my data source:

			$(window).load(function() {
				$('#table-results').dataTable({
                            "sAjaxSource": "data.json",
        		        });
			});

... and everything works great.

Now, ideally I'd like to load the json file from an Amazon S3 bucket, like so:
			$(window).load(function() {
				$('#table-results').dataTable({
                            "sAjaxSource": "https://s3.amazonaws.com/mybucketname/data.json",
        		        });
			});

... but this is not working. From the reading I did on this forum, the issue probably relates to the XSS (cross-site scripting) safeguards. So here is my question: is my assessment of the issue correct and if yes what workarounds if any I can employ to get this setup to work?

Thanks in advance for your help!

Viewing all articles
Browse latest Browse all 82152

Trending Articles