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

Fix cross domain requests for static files with a querystring #93

Merged
merged 2 commits into from
Aug 19, 2020

Conversation

sampaccoud
Copy link
Contributor

Purpose

Some static files are called with a query string. It breaks the effect of CORS headers to allow cross domain requests when static files are placed behing a CDN.

Proposal

Passing the query string to the origin fixes the issue.

Some static files are called with a query string. It breaks the effect
of CORS headers to allow cross domain requests when static files are
placed behing a CDN. Passing the query string to the origin fixes it.
The new 0.13 version of terraform requires a migration. We don't
want to do it now so we need to pin it to v0.12.
@sampaccoud sampaccoud self-assigned this Aug 19, 2020
@sampaccoud sampaccoud added the bug label Aug 19, 2020
aws/cloudfront.tf Show resolved Hide resolved
@sampaccoud sampaccoud merged commit 7802d18 into master Aug 19, 2020
@sampaccoud sampaccoud deleted the allow-query-strings-on-static-files branch August 19, 2020 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants