您的位置: 首页 > IT文章 > (django1.10)访问url报错Forbidden (CSRF cookie not set.): xxx (django1.10)访问url报错Forbidden (CSRF cookie not set.): xxx 分类: IT文章 • 2023-11-02 08:17:35 问题:页面访问时报错 Forbidden (CSRF cookie not set.): xxx 解决方法: 修改settings.py文件,注释掉 django.middleware.csrf.CsrfViewMiddleware',