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

CSRF blocked the API request #809

Open
wangqian0306 opened this issue Oct 9, 2024 · 3 comments
Open

CSRF blocked the API request #809

wangqian0306 opened this issue Oct 9, 2024 · 3 comments

Comments

@wangqian0306
Copy link
Contributor

Hi everyone, I found a fundamental question. The official documentation states that you can use the API to call SequenceServer. I also tried the recommended sequenceserver-remote-blast-python-api library, but I encountered CSRF interception.

I don't know about Ruby, but I asked GPT and saw that in code
it seems that CSRF detection is permanently enabled. Can we make this a configuration item? Or is there another API to get CSRF Token?

@tadast
Copy link
Collaborator

tadast commented Oct 9, 2024

You're right, this is a bug, sorry. We might need to make CSRF protection configurable as a temporary measure. While we're working on it, you should be able to comment out/delete the line you've linked to disable it.

@yannickwurm
Copy link
Member

Hi @wangqian0306 - we'd be delighted for a pull request that makes this an optional setting

@wangqian0306
Copy link
Contributor Author

@yannickwurm Is this correct? #810

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

No branches or pull requests

3 participants