Exporting Database to CSV/XLSX Using Code

Hi all,

I’m trying to export database entries using some code.

I was able to use this successfully:

However, when I try to use this method to allow direct download with an iFrame html element and not just showing the results in a text box I have an issue:

The problem is that the link is starting with: “data:application…” and not “https:”. It seems that wix is blocking this method even from within the html element,

Any suggestion for a workaround?

Hey! Maybe this article can be useful :wink:

Thanks Anna!
This one actually let you export to JSON and display it on your site but doesn’t resolve the download issue…