OSCHINA 社区最新讨论话题 |
Django rest framework 如何设置特定方法不验证身份? Posted: 05 Nov 2021 06:40 PM PDT 有个方法是接收腾讯吐小曹发来的post数据,但是腾讯不会发referer 和 cookie过来,如何单独关闭这个方法的身份验证呢? 我加了 @authentication_classes([]) @permission_classes([]) 修饰,但是还是返回: django.security.csrf - WARNING - Forbidden (CSRF cookie not set.): /comment/push... |
You are subscribed to email updates from OSCHINA 社区最新讨论话题. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment