Created
February 15, 2017 23:57
-
-
Save derwiki/adeb5ed1018dc0a7fdd586ffed8bf998 to your computer and use it in GitHub Desktop.
Sample Cross-Origin Resource Sharing (CORS) Policy to allow PDF.js to read PDFs from an AWS S3 bucket.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<AllowedMethod>HEAD</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
<AllowedHeader>Range</AllowedHeader> | |
<AllowedHeader>Authorization</AllowedHeader> | |
<ExposeHeader>Accept-Ranges</ExposeHeader> | |
<ExposeHeader>Content-Encoding</ExposeHeader> | |
<ExposeHeader>Content-Length</ExposeHeader> | |
<ExposeHeader>Content-Range</ExposeHeader> | |
</CORSRule> | |
</CORSConfiguration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good stuff - came from igv.js with the same issue. Working now, thanks.