-
Notifications
You must be signed in to change notification settings - Fork 102
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
Decorators depending on request method types #169
Comments
I think it will be simple to add this after #36 has landed. Though I have to admit, I'm confused about the value proposition here. Can you explain a little bit about why you want to do this @erdimeola? |
This comment was marked as spam.
This comment was marked as spam.
Sorry for the late answer.
Payment pages. If GET request return payment page, and POST request gets the information and redirects to 3d secure pages (as html), we need to apply some exemptions or updates to CSP for the payment to start. @some1ataplace I just updated the decorators.py in github code to check method. This worked for me. Code is below; example usage: @csp_exempt(methods=["POST"])
|
Hi, hope everyone is healthy and safe.
I have multiple views which are working with multiple request methods. For some of these views, I'ld like to update/replace/exclude the csp only for the request method. For example;
I hope I'm not the only one in need of such feature.
The text was updated successfully, but these errors were encountered: