‘_xsrf’ argument missing from POST
时间: 2023-12-08 14:04:34 浏览: 162
requests
The ‘_xsrf’ argument is a security measure used by websites to prevent cross-site request forgery (CSRF) attacks. When making a POST request to a website, the ‘_xsrf’ argument should be included in the request data to validate the authenticity of the request.
If the ‘_xsrf’ argument is missing from the POST request, it can result in the website rejecting the request or returning an error message. This error message may indicate that the request is unauthorized or that the user is not logged in.
To fix this error, you should ensure that the ‘_xsrf’ argument is included in the POST request data. You can obtain the value of the ‘_xsrf’ argument from the website’s cookies or from the HTML source code of the webpage. Once you have obtained the value, you can include it in the POST request data and submit the request again.
阅读全文