Skip to content

SpyShare/proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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://netnr-proxy.azurewebsites.net/" + $url).then(x => x.json()).then(console.log)

Run

yarn        # Installation package
npm start   # start

node app.js
PORT=8888 node app.js

Source code

About

HTTP请求代理,CORS跨域请求,HTTPS支持(cors-anywhere)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%