阅读背景:

令牌认证在django rest框架中的生产中不起作用

来源:互联网 

I have this strange issue and I can't find why. I've build the API using django 1.7 and django rest framework and token auth for api authentication. All works fine on local host, but when I'm trying to call an API endpoint which requires authentication on production machine I'm getting 403 status code along with the following message: {"detail":"Authentication credentials were not provided."}. What I'm doing wrong?I have this strange issue and I can't find why.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: