Forums

400

Здравствуйте. Как избавиться от ошибки 400 The browser (or proxy) sent a request that this server could not understand

Если делается запрос не браузером, выдаёт это Как исправить?

Make sure that the client is using an HTTP request method that the view is designed to respond to. For instance, if your view only accepts GET requests, then sending it a POST request will give you that error. You might also get that error if your view was expecting a CSRF token or some other data to be included and it is missing in the request.

а как отключить CSRF токен?

That will depend on your web framework and the library that you are using to manage CSRF. Check the documentation of both.