Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 830 Bytes

File metadata and controls

32 lines (24 loc) · 830 Bytes

English | 简体中文

proxy

HTTP request proxy, CORS cross-domain request, HTTPS support

Function

  • Support cross-domain requests (converting interfaces that do not support cross-domain requests), and directly initiate ajax, fetch
  • Support HTTPS (Resolve that the remote data interface does not support HTTPS)

Use

// Copy to the console to run

var $url = "wthrcdn.etouch.cn/weather_mini?citykey=101040100";
fetch("https://proxy.zme.ink/" + $url).then(x => x.json()).then(console.log)

Run

npm start   # start

# node app.js
# PORT=8888 node app.js

Source code