Code Monkey home page Code Monkey logo

easy-proxy's Introduction

easy-proxy

让跨域代理变得简单。

easy-proxy可以简单并快速的进行跨域代理。此项目适合传统网页进行跨域请求。对于vue等框架,有相应的处理方式。

环境依赖:node.js

使用

  1. 安装依赖
npm install
  1. 修改server.js
const CONFIG = {
  // 监听端口
  port: 3000,
  // 需要代理的网址
  url: 'http://www.xxx.com'
}
  1. 将我们的网页丢进public文件夹内。

  2. 运行

npm run server

不出意外,将自动打开浏览器访问http://localhost:3000

参考文献

easy-proxy's People

Contributors

auven avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.