# proxy **Repository Path**: peakchao/proxy ## Basic Information - **Project Name**: proxy - **Description**: HTTP请求代理,CORS跨域请求,HTTPS支持(cors-anywhere) - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: https://proxy.netnr.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-10-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # proxy > HTTP请求代理,CORS跨域请求,HTTPS支持 ### 作用 - 支持跨域请求(转换不支持跨域请求的接口),可直接发起 ajax、fetch - 支持HTTPS(解决远程数据接口不支持HTTPS) ### 接口 - https://netnr-proxy.cloudno.de/{URL} ### 使用 - - > 拷贝到控制台运行 ```js var $url = "http://wthrcdn.etouch.cn/weather_mini?citykey=101040100"; fetch("https://netnr-proxy.cloudno.de/" + $url).then(x => x.text()).then(console.log) ``` ### 安装 - `npm install` - `node server` ### Fork - ### Source - -