摘要:
01-在类的 dispatch 方法上使用 @csrf_exempt 02-在 urls.py 中配置 03-重新改写其中验证 csrf 的方法 阅读全文
摘要:
解决问题:不用登录,就可以访问api 其他: 阅读全文
摘要:
01-安装模块 02-添加到INSTALL_APPS中 03-添加中间件 'corsheaders.middleware.CorsMiddleware', 04-设置为True 05-另一种解决方法 - 添加响应头 阅读全文