【发布时间】: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?
【问题讨论】:
-
stackoverflow.com/questions/35623792/… 的答案似乎是相关的。这建议使用 Django HTTP 代理。要启用 CORS,我想您需要添加 github.com/ottoyiu/django-cors-headers,正如您所提到的。
标签: python django proxy cors cors-anywhere