-
Notifications
You must be signed in to change notification settings - Fork 7
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
Manage S3 CORS headers in Terraform and add them for production #1352
Comments
Also, we had to manually run |
We should specify that in the application manifest, as we do for the public bucket. |
|
Noting for later: We would do this by having a |
@tadhg-ohiggins , is this... debt? Something we should flag as |
@jadudm No, this is something that appears to still be causing problems in production, or at least there are images failing to load that report CORS errors in the browser console, so I strongly suspect those are due to this not having been done. |
I have not yet been able to prioritize this, given many other needs.
It should remain in the pile for @dan Swick - Q2ABD ***@***.***> and
I to map in as part of our continued board cleanup.
…On Wed, Nov 29, 2023 at 2:09 PM tadhg-ohiggins ***@***.***> wrote:
@jadudm <https://github.com/jadudm> No, this is something that appears to
still be causing problems in production, or at least there are images
failing to load that report CORS errors in the browser console, so I
strongly suspect those are due to this not having been done.
—
Reply to this email directly, view it on GitHub
<#1352 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAJLEQL4FWFY2PT2KYCX4DYG6B5NAVCNFSM6AAAAAAZWG5F46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZSGUZTGOJYHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Background
We manually added the required CORS headers to the S3 buckets for fac-dev.app.cloud.gov and fac-staging.app.cloud.gov but should manage this with Terraform.
WE DID NOT DO THIS FOR THE PRODUCTION ENVIRONMENT. So that still needs to be set up, preferably by the Terraform process that will cover all of the environments.
We used this command to set the CORS headers:
where
[BUCKET_NAME]
is the name of the bucket for that environment. The contents ofcors.json
were:where [ENV_DOMAIN] was
fac-dev.app.cloud.gov
fordev
andfac-staging.app.cloud.gov
forstaging
.For reference, the commands for this are included below:
Acceptance Criteria (We'll know we're done when...)
The text was updated successfully, but these errors were encountered: