我使用django-cors-headers和django-rest-framework。
我的frontender get错误:

印前检查响应:

我用curl进行了测试,看起来一切正常:

我不明白问题出在哪里。
发布于 2016-02-01 17:34:59
CORS问题在in the documentation中进行了解释。简而言之,您正在跨域执行CORS保护不允许的调用。
https://stackoverflow.com/questions/35099103
复制相似问题