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

Use UTC for cookie expiry date in backend #566

Merged
merged 1 commit into from
Feb 5, 2023
Merged

Use UTC for cookie expiry date in backend #566

merged 1 commit into from
Feb 5, 2023

Conversation

MoX46
Copy link
Contributor

@MoX46 MoX46 commented Feb 1, 2023

Issue:
Logging in to the web UI for the first time resulted in 301 redirect on v1.5.4. Only seems to be an issue on chromium based browsers (Brave, Chrome, Edge). Not an issue on Firefox as far as I can tell.

Solution:
JavaScript documents indicate cookie expires attribute should be UTC format . After cba5046 expiry date is returned in local time format instead of UTC. Updating backed to explicitly use UTC resolves the issue.

@fmartingr fmartingr merged commit 52d9a63 into go-shiori:master Feb 5, 2023
@fmartingr
Copy link
Member

Hey @MoX46, thanks for finding this out and fixing it, really appreciated :)

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