分类: Python/Ruby
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')其他(php):