title: How to print a base64 pdf?
body: <p>I receive a base64 pdf from the server which I want to print.</p>
  
  <p>I have been trying the following:</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: url,
      data: blahblahblah,
      success: function(data) {
          var printWindow = window.open( "data:application/pdf;base64, " + data );
          printWindow.print();
      }
  });
  </code></pre>
  
  <p>Sadly, this does not work in Chrome.  I am receiving the following error:</p>
  
  <blockquote>
    <p>SecurityError: Blocked a frame with origin "xxx" from accessing a
    frame with origin "null".  The frame requesting access has a protocol
    of "http", the frame being accessed has a protocol of "data".
    Protocols must match.</p>
  </blockquote>
  
  <p>Suggestions on how to work around this?</p>