(django1.10)访问url报错Forbidden (CSRF cookie not set.): xxx

问题:页面访问时报错
Forbidden (CSRF cookie not set.): xxx
 
 
解决方法:
修改settings.py文件,注释掉
django.middleware.csrf.CsrfViewMiddleware',
 
原文地址:https://www.cnblogs.com/meitian/p/7016336.html