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

Using http methods without decorators #399

Closed
PauloVitorRocha opened this issue Apr 6, 2021 · 0 comments
Closed

Using http methods without decorators #399

PauloVitorRocha opened this issue Apr 6, 2021 · 0 comments
Assignees
Labels
code enhancement New feature or request security

Comments

@PauloVitorRocha
Copy link
Contributor

Describe the issue
An HTTP method is safe when used to perform a read-only operation, such as retrieving information. Knowing that it is not so easy to change http to https, I suggest the use of decorators that obligate strict GET methods to only accept GET requests.

Expected behavior
Strict GET methods should have @require_http_methods(["GET"]) decorator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code enhancement New feature or request security
Projects
None yet
Development

No branches or pull requests

2 participants