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

Skip to content

snake-git/proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 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 = "http://wthrcdn.etouch.cn/weather_mini?citykey=101040100";
fetch("https://proxy.netnr.eu.org/" + $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

More

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 87.0%
  • HTML 13.0%