Last active
November 27, 2024 20:08
-
-
Save yurydelendik/3452072 to your computer and use it in GitHub Desktop.
CORS for pdf.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "http://mozilla.github.io" | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe src="http://mozilla.github.io/pdf.js/web/viewer.html?file=http%3A%2F%2Fasync5.org%2Fmoz%2Fpdfjs.pdf" width="500" height="400"></iframe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi yuri could you tell me where to put the .htaccess file and i have to reference to it somewhere?