发布时间:2017-01-02 16:06:22
python代码:response = HttpResponse(json.dumps(ret), content_type="application/json")response.__setitem__('Access-Control-Allow-origin', '*')response.__setitem__('Access-Control-Allow-Headers', 'x-requested-with,content-type')其他:在被请求的Response header中加入view plain .........【阅读全文】