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

Remove CSRF tokens fetching code #673

Merged
merged 3 commits into from
Dec 20, 2021
Merged

Remove CSRF tokens fetching code #673

merged 3 commits into from
Dec 20, 2021

Conversation

jhchabran
Copy link
Contributor

@jhchabran jhchabran commented Dec 20, 2021

Follow-up to this problem reported on Slack.

Due to https://github.com/sourcegraph/sourcegraph/pull/28572, the CSRF headers were removed and due to a bug in the error checking code, triggers a panic.

@jhchabran jhchabran marked this pull request as ready for review December 20, 2021 21:32
Copy link
Contributor

@LawnGnome LawnGnome left a comment

Choose a reason for hiding this comment

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

LGTM, with the caveats from our Slack thread that I know basically nothing about src validate. Could you add a changelog entry, please, since this appears to be a version interop concern that might affect end users as well as us?

Note to self: this should probably be migrated to api.Client at some point, rather than having a whole separate client implementation just for validate.

jhchabran added a commit to sourcegraph/deploy-sourcegraph that referenced this pull request Dec 20, 2021
@LawnGnome LawnGnome merged commit 7f79701 into main Dec 20, 2021
@LawnGnome LawnGnome deleted the remove-csrf branch December 20, 2021 22:15
scjohns pushed a commit that referenced this pull request Apr 24, 2023
* Remove CSRF tokens fetching code

* Remove unused func

* Update CHANGELOG.

Co-authored-by: Adam Harvey <adam@adamharvey.name>
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