Light Mode

Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

Last active November 27, 2024 20:08
Show Gist options
  • Select an option

    " 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.

Select an option

" readonly="readonly" aria-describedby="validation-009b96b2-c881-48ee-b711-d39b9f4 31e20" type="text" name="gist-share-url-original" />
Save yurydelendik/3452072 to your computer and use it in GitHub Desktop.
CORS for pdf.js
.htaccess
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "http://mozilla.github.io"
IfModule>
embed-as-iframe.html
<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>
Copy link

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