I'm trying to print a pdf generated by jspdf and loaded on iframe, but I'm getting that error message:
"DOMException: Blocked a frame with origin "http://localhost:8084" from accessing a cross-origin frame."
this is my code:
<iframe id="pdf-prueba" name="pdf-box"></iframe>
function open(){
var pdf = new jsPDF('p', 'mm', [55, 5]);
var data = pdf.output('datauristring');
$('#pdf-box').attr("src", data).load(function(){
document.getElementById('pdf-box').contentWindow.print();
});
}