【发布时间】:2013-03-13 14:53:48
【问题描述】:
除了content-type 到application/json 之外,我可以在不设置任何标题的情况下使用 SessionAuthentication 和 Tastypie 进行 GET。然而,即使 Header 中的 Cookie 具有会话 ID,HTTP POST 也会失败。它以 401 AuthorizationHeader 失败,但与授权无关。将 SessionAuthentication 更改为 BasicAuthentication 并传递用户名/密码也可以。
有没有人通过 SessionAuthentication 与 Tastypie 一起使用 POST?
【问题讨论】:
标签: python django rest tastypie