【问题标题】:Postman how to use Authorization: Token?邮递员如何使用授权:令牌?
【发布时间】:2020-07-18 17:36:05
【问题描述】:

我对 Postman 有一些问题。

如果我通过命令窗口使用 curl - 一切正常:

curl -H "Authorization: Token *************************"  http://localhost:8000/me/

我可以访问我的数据。

如何通过 Postman 使用这个令牌?

我正在尝试,但仍然出现如下错误:

{
    "detail": "Authentication credentials were not provided."
}

祝你有个愉快的夜晚!

【问题讨论】:

    标签: authorization postman token


    【解决方案1】:

    好的,我使用的是授权或正文字段 - 这就是问题所在。

    如果您想这样做,只需使用 Headers Field 和:

    作为密钥集“授权”

    作为值“令牌

    【讨论】:

      猜你喜欢
      • 2018-09-22
      • 2020-07-23
      • 1970-01-01
      • 2020-01-19
      • 2020-03-05
      • 2021-04-15
      • 1970-01-01
      • 2018-02-05
      • 2021-10-02
      相关资源
      最近更新 更多