ajax请求出现: {"detail":"CSRF Failed: CSRF token missing or incorrect."} setting.py: # REST_FRAMEWORK配置 REST_FRAMEWORK = { ‘DEFAULT_AUTHENTICATION_CLASSES‘: ( ‘rest_framework.authentication.TokenAuthentication‘, ) }
2023-12-21 11:43:45
ajax请求出现: {"detail":"CSRF Failed: CSRF token missing or incorrect."} setting.py: # REST_FRAMEWORK配置 REST_FRAMEWORK = { ‘DEFAULT_AUTHENTICATION_CLASSES‘: ( ‘rest_framework.authentication.TokenAuthentication‘, ) }
下一篇:http请求的几种类型