XMLHttpRequest cannot loadfile:///E:/webs/extJS/ext-3.3.0/examples/csdn/combobox.txt?_dc=1414738973999.Cross origin requests are only supported for protocol schemes: http, data,chrome-extension, http
方法一、在视图层view.py引入csrf_exempt,然后给视图函数加上@csrf_exempt装饰器 from django.views.decorators.csrf import csrf_exempt@csrf_exemptdef login(req):...... 方法二、在urls.py中配置 from django.views.decorators.csrf import