不允许使用Django CORS方法

时间:2016-01-30 07:08:58

标签: django cors django-rest-framework django-cors-headers

我使用django-cors-headers和django-rest-framework。

我的前锋得到错误:

enter image description here

飞行前响应:

enter image description here

我用curl测试过,看起来都很好:

enter image description here

无法理解问题所在。

1 个答案:

答案 0 :(得分:0)

解释了CORS问题in the documentation。 简而言之,您在CORS保护所不允许的域之间进行呼叫。