【问题标题】:Django CORS Method not allowed不允许使用 Django CORS 方法
【发布时间】:2016-05-08 01:10:33
【问题描述】:

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

我的前端收到错误:

预检响应:

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

无法理解问题所在。

【问题讨论】:

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


    【解决方案1】:

    in the documentation 中解释了 CORS 问题。 简而言之,您正在跨域执行 CORS 保护不允许的调用。

    【讨论】:

      猜你喜欢
      • 2013-03-13
      • 2018-06-16
      • 2014-01-09
      • 2017-07-16
      • 2016-08-05
      • 2018-04-08
      • 2015-08-01
      • 1970-01-01
      • 2018-09-25
      相关资源
      最近更新 更多