在使用 content-type application/json 进行 API 调用时,改进 BAD CSRF 错误消息

API requests with the Content-Type as “application/json” often receive an unhelpful message like “BAD CSRF”, so we should improve the error messaging so that it provides more details as to why they are receiving this error message.

8 个赞