【问题标题】:Django reverse proxy server CORSDjango 反向代理服务器 CORS
【发布时间】:2018-02-16 19:00:45
【问题描述】:

我希望在 django 中编写一条与 https://github.com/Rob--W/cors-anywhere 完全一样的路线

我想这和这个问题Django as reverse proxy类似

我的问题是如何在其中添加 cors 标头。我也看过这个https://github.com/ottoyiu/django-cors-headers,反向代理是否只适用于CORS,只需添加django-cors-headers?

【问题讨论】:

标签: python django proxy cors cors-anywhere


【解决方案1】:

Django-cors-headers not working 中的答案可以解决问题,如果您想要一张图片,只需更改响应中的内容类型以匹配图片,

【讨论】:

    猜你喜欢
    • 2017-07-17
    • 1970-01-01
    • 2017-08-16
    • 1970-01-01
    • 1970-01-01
    • 2013-04-02
    • 1970-01-01
    • 2018-05-09
    • 2020-06-29
    相关资源
    最近更新 更多