I am trying to download json object as cvs file. This JSON object is actually made out of a Java object that is in the browser itself. I am not firing any network request to get.
It is working fine in Chrome but IE-11 throws below error in Network->Response tab.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>414 Request-URI Too Large</title>
</head><body>
<h1>Request-URI Too Large</h1>
<p>The requested URL's length exceeds the capacity
limit for this server.<br />
</p>
<hr>
<address>Omniture DC/2.0.0 Server at *.112.2O7.net Port 80</address>
</body></html>
In the console , I am getting this.
The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337
My code in javascripts is as below:
var fileName = "Group Assignment";
var uri = 'data:text/csv;charset=utf-8,' + escape(CSV);
var link = document.getElementById('download-as-csv');
link.href = uri;
link.download = fileName + ".csv";
link.innerHTML = 'Download as CSV';