How to integrate smartsheet use in confluence, when I used inside html macro it will through me this error can anybody please how can I solve this error.
Error : Access to XMLHttpRequest at 'https://amazonaws.com/csvtojson.json' from origin 'https://ac-html-sandbox.herokuapp.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
@yapi_hew Can you show me the code snippet you integrate that?
<script>
var table = new DataTable(".table", { ajax: { url: "https://api.smartsheet.com/2.0/sheets/6051615279998852", content: { type: "json" } }, searchable: true, fixedHeight: false});
table.on("datatable.ajax.loaded", function() { this.wrapper.className = this.wrapper.className.replace(" dataTable-loading", ""); var columns = table.columns(); console.log(columns) columns.hide([2, 4, 7, 9, 10, 11, 13, 14, 15, 16, 18, 19]);});
table.on('datatable.search', function(query, matched) { console.log(query, matched);});
</script>
var table = new DataTable(".table", {ajax: {url: "https://api.smartsheet.com/2.0/sheets/6051615279998852",content: {type: "json"}},searchable: true,fixedHeight: false});
table.on("datatable.ajax.loaded", function() {this.wrapper.className = this.wrapper.className.replace(" dataTable-loading", "");var columns = table.columns();console.log(columns)columns.hide([2,4,7, 9, 10, 11, 13, 14 ,15 ,16 ,18 ,19]);});
table.on('datatable.search', function(query, matched) {console.log(query, matched);});</script>
I also try to do Configuring the Whitelist, but i didn't find any option like this in my confluence settings.
@yapi_hew Have you deployed Confluence under https://ac-html-sandbox.herokuapp.com/ ?
What does https://amazonaws.com/csvtojson.json do in this case?
It looks like you're new here. Sign in or register to get started.