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

Insecure CSRF cookie #408

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Insecure CSRF cookie #408

merged 1 commit into from
Jan 12, 2024

Conversation

ndtretyak
Copy link
Contributor

What was changed

CSRF cookie is now set without Secure attribute.

Why?

Now CSRF cookie is Secure but development servers are usually used locally without HTTPS. For some reason, it works fine in Chrome (there is an exception for localhost domain in Secure handling) but does not work in Safari.

Since start-dev command starts a development server, I think it is safe to use insecure cookies here.

Checklist

  1. Closes

  2. How was this tested:

Checked locally with different browsers.

  1. Any docs updates needed?

No.

@josh-berry josh-berry merged commit 64ab741 into temporalio:main Jan 12, 2024
16 checks passed
@josh-berry
Copy link
Collaborator

Thanks for the PR!

josh-berry added a commit that referenced this pull request Apr 1, 2024
This forward-ports #408 to the cli-rewrite branch.
josh-berry added a commit that referenced this pull request Apr 2, 2024
This forward-ports #408 to the cli-rewrite branch.
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