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 cookies not saving in viewer.gutools.co.uk #65

Merged
merged 2 commits into from
Jan 28, 2020

Conversation

ripecosta
Copy link
Contributor

Fixes a bug where cookies were not being saved when accessing viewer.gutools.co.uk.

This was happening because we never accounted for domains using a second level domain such as viewer.gutools.co.uk. So when slicing the full domain to remove subdomains we were getting .co.uk and setting it as the cookie domain, which the browser ignored.

@ripecosta ripecosta requested a review from GHaberis January 27, 2020 16:46
@ripecosta ripecosta force-pushed the rc/preview-cookie-saving branch from 30f7306 to f37b6c9 Compare January 28, 2020 10:40
Copy link
Contributor

@GHaberis GHaberis 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 👍

@ripecosta ripecosta merged commit eb6f56b into master Jan 28, 2020
@ripecosta ripecosta deleted the rc/preview-cookie-saving branch January 28, 2020 11:18
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