Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CORS config to S3 media bucket for igv.js #3227

Merged
merged 1 commit into from
Feb 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions deployment/terraform/modules/s3/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ PUBLIC_ACCESS
enabled = true
}

# https://github.com/igvteam/igv.js/wiki/Data-Server-Requirements#cross-origin-resource-sharing-cors
cors_rule {
allowed_headers = ["Range"]
allowed_methods = ["GET", "HEAD"]
allowed_origins = ["${var.origin_protocol}://${var.origin_domain}"]
max_age_seconds = 600
}

lifecycle_rule {
id = "Delete non-current object versions and expired delete markers"
enabled = true
Expand Down