Instantly share code, notes, and snippets.
Last active
November 27, 2024 20:08
-
" readonly="readonly" aria-describedby="validation-6bd1ae35-2db7-41e4-ad5f-b274206 42204" type="text" name="gist-share-url-sized-down" />
-
Save yurydelendik/3452072 to your computer and use it in GitHub Desktop.
" readonly="readonly" aria-describedby="validation-009b96b2-c881-48ee-b711-d39b9f4 31e20" type="text" name="gist-share-url-original" />
CORS for pdf.js
.htaccess
This file contains hidden or 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> |
embed-as-iframe.html
This file contains hidden or 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> |
hi yuri could you tell me where to put the .htaccess file and i have to reference to it somewhere?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment