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

CDPT-2227 Delete production CloudFront cookies when browsing dev, staging, & demo. #782

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

EarthlingDavey
Copy link
Contributor

@EarthlingDavey EarthlingDavey commented Nov 11, 2024

This PR adds code that:

Deletes production CloudFront cookies when browsing dev, staging, & demo.

This is important, as without this fix, 2 lots of CloudFront cookies are sent to e.g. cdn.staging.intranet.justive.gov.uk

This might seem a bit messy, but it's an unfortunate side-effect of:

  • using sub domain cookies for CloudFront.
  • dev, staging, demo being sub-domains of the production url.

One other solution would be to not have dev, staging, demo as sub-domains of the production site.
That's also not ideal as the staging url has already been shared with editors and has been used for a couple of rounds of QA.

Copy link
Contributor

@wilson1000 wilson1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@EarthlingDavey EarthlingDavey merged commit 25d078b into main Nov 18, 2024
6 checks passed
@EarthlingDavey EarthlingDavey deleted the cdpt-2227-handleclashing-cdn-cookies branch November 18, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants