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

API: Outdated comment? #1832

Open
1 task done
ebroda opened this issue Sep 10, 2024 · 0 comments
Open
1 task done

API: Outdated comment? #1832

ebroda opened this issue Sep 10, 2024 · 0 comments
Labels

Comments

@ebroda
Copy link
Contributor

ebroda commented Sep 10, 2024

Description of the issue

The following comment feels outdated, as it simply works with the Token that OEP is providing for API calls. If that's the case, I'd hardly suggest to remove the comment to avoid confusion while debugging code.

oeplatform/api/views.py

Lines 401 to 405 in be12447

Every request to unsave http methods have to contain a "csrftoken".
This token is used to deny cross site reference forwarding.
In every request the header had to contain "X-CSRFToken"
with the actual csrftoken.
The token can be requested at / and will be returned as cookie.

Context and Environment

  • Version used: current

Workflow checklist

@ebroda ebroda added the bug label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant