0
我期待寫在Django的作品正是這樣https://github.com/Rob--W/cors-anywhere路線Django的反向代理服務器CORS
我想這就像在這個問題Django as reverse proxy
我的問題是如何添加CORS標頭相似進去。我也看過這個https://github.com/ottoyiu/django-cors-headers,反向代理只是簡單地爲CORS工作,只需添加django-cors-headers?
答案在https://stackoverflow.com/questions/35623792/django- cors-headers-not-working/35625221#35625221似乎相關。這表明使用Django HTTP代理。爲了使這個CORS啓用,我想你需要添加https://github.com/ottoyiu/django-cors-headers,正如你所提到的。 – sideshowbarker