There was an issue that I could not figure out what was going on until last minute of the release. I decided to write about it as the solution was very simple,it is a hint given to me by a genius, my fellow colleague . Let me describe the issue first. I wanted to generate a PDF in the browser and used Pdf make , which is an awesome javascript library, works well with data tables. There was a requirement to add the logo/image to the page header. The logo is already loaded on the page as and the image was stored in S3. When a user prints the PDF, it will download the image via ajax call(then cache it). So it was a simple implementation what I had to implement the ajax call and convert to image data URL and pass it to the pdfmake( Currently, pdf make only accepts base64 image dataurls as it is not asynchronous PDF generation ). Every time I try to print, Chrome throws " No 'Access-Control-Allow-Origin' header is present on the requested resource". What could be t