I am using Angularjs and REST to display and retrieve PDF. It works fine in all the browsers except IE. I am using IE10. Getting an error message "Access Denied". Need some help . Is there any way to fix this problem. I am using Object tag in the html page for displaying pdf.
HTML source:
<object data="{{content}}" type="application/pdf" style="width: 100%; height: 700px;"></object>
Js source:
$http.get(url,{ responseType: 'arraybuffer' }).then(function(response){
var file = new Blob([response.data], {type: 'application/pdf'});
fileURL = URL.createObjectURL(file);
content = $sce.trustAsResourceUrl(fileURL);
});
Googled a lot but couldn't get a proper solution. Any help is appreciated. Thanks in advance