加入了crsf,避免跨域问题
http代理访问地址为 https://xxx/proxy/1/www.baidu.com/
https代理访问地址为 https://xxx/proxy/0/www.baidu.com/
Install with
$ pip install django-proxy-crsf
Forward as close to an exact copy of the request as possible along to a given url. Respond with as close to an exact copy of the resulting response as possible.
Includes a view function that can be used directly from a URL spec:
from proxy.views import proxy_view
urlpatterns = patterns(
...
url('proxy/(?P<http>\d+)/(?P<url>.*)', proxy_view),
...
)
Copyright © blackjack0v0
All rights reserved.