CORS issues with PDF. How it can be fixed?
Modern internet browsers take security seriously! After many attacks and malpractice on the internet, many new security rules have been introduced. Among such rules is CORS (Cross-origin resource sharing), which applies for cross-domain resource access; mainly using AJAX requests. Why CORS occurs? DearFlip uses PDF.js that relies on Ajax requests to fetch PDF files and …