All Projects → jjeejj → CORS-Proxy-Server

jjeejj / CORS-Proxy-Server

Licence: MIT license
代理转发 CORS 跨域资源请求

Programming Languages

javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Labels

Projects that are alternatives of or similar to CORS-Proxy-Server

Create React Redux App Structure
Create React + Redux app structure with build configurations ✨
Stars: ✭ 161 (+1138.46%)
Mutual labels:  cors
Akka Http Cors
Akka Http directives implementing the CORS specifications defined by W3C
Stars: ✭ 234 (+1700%)
Mutual labels:  cors
realestate
A simple real estate app build with MEAN( Angular, Node and mongoDb ) and MERN( React, Node and mongoDb )
Stars: ✭ 33 (+153.85%)
Mutual labels:  cors
Flusk
Boilerplate API on how to structure big Flask applications (includes SQLAlchemy, Docker, nginx)
Stars: ✭ 165 (+1169.23%)
Mutual labels:  cors
Express Es6 Rest Api
🔋 Starter project for an ES6 RESTful Express API.
Stars: ✭ 2,401 (+18369.23%)
Mutual labels:  cors
Spring Boot Start Current
Spring Boot 脚手架 Mybatis Spring Security JWT 权限 Spring Cache + Redis
Stars: ✭ 246 (+1792.31%)
Mutual labels:  cors
Cors Container
A CORS proxy in a container (Docker) for when you need to `Access-Control-Allow-Origin: *`!
Stars: ✭ 150 (+1053.85%)
Mutual labels:  cors
upload-file-to-backblaze-b2-from-browser-example
Demonstrates calling the b2_upload_file Backblaze B2 Cloud Storage API from a web browser using AJAX.
Stars: ✭ 28 (+115.38%)
Mutual labels:  cors
Koa2 Cors
CORS middleware for koa2
Stars: ✭ 223 (+1615.38%)
Mutual labels:  cors
drf-starter-template
DRF Starter Template with drf-yasg, heroku deployment ready config, CORS config
Stars: ✭ 25 (+92.31%)
Mutual labels:  cors
Aiohttp Cors
CORS support for aiohttp
Stars: ✭ 173 (+1230.77%)
Mutual labels:  cors
Web Security Fundamentals
👨‍🏫 Mike's Web Security Course
Stars: ✭ 195 (+1400%)
Mutual labels:  cors
Instagram Proxy Api
CORS compliant API to access Instagram's public data
Stars: ✭ 245 (+1784.62%)
Mutual labels:  cors
Cloudflare Cors Anywhere
CORS "anywhere" proxy in a Cloudflare worker. DEMO at: https://test.cors.workers.dev/
Stars: ✭ 162 (+1146.15%)
Mutual labels:  cors
laravel-cors
Laravel cors
Stars: ✭ 19 (+46.15%)
Mutual labels:  cors
Rust Webapp Starter
Rust single page webapp written in actix-web with vuejs.
Stars: ✭ 151 (+1061.54%)
Mutual labels:  cors
Link Preview Js
Parse and/or extract web links meta information: title, description, images, videos, etc. [via OpenGraph], runs on mobiles and node.
Stars: ✭ 240 (+1746.15%)
Mutual labels:  cors
mezzio-cors
CORS component for Mezzio and other PSR-15 middleware runners.
Stars: ✭ 13 (+0%)
Mutual labels:  cors
simple-cors
Simply usable CORS middleware / interceptor for Clojure
Stars: ✭ 26 (+100%)
Mutual labels:  cors
Bus
Bus 是一个基础框架、服务套件,它基于Java8编写,参考、借鉴了大量已有框架、组件的设计,可以作为后端服务的开发基础中间件。代码简洁,架构清晰,非常适合学习使用。
Stars: ✭ 253 (+1846.15%)
Mutual labels:  cors

CORS-Proxy-Server

代理转发 CORS 跨域资源请求 测试服务地址: cors.wenjunjiang.win

使用方法

  1. 若是 get 请求,就在发生跨域的地方直接发送 get 请求,并把实际需要请求的地址 放到 query 中,参数名为: remoteUrl
  2. 若是 post 请求,就在发生跨域的地方直接发送 post 请求,并把实际需要请求的地址 放到 query 中,参数名为: remoteUrl ,其他参数如 body header 按照正常请求进行设置

总体来说,使用方法为:把请求的 url 改为 <代理服务地址>?remoteUrl=<实际服务地址> 其他参数设置方法不变

示例

代理服务地址为: http://127.0.0.1:4500

  1. get 请求: 实际服务地址remoteUrlhttp://ip.taobao.com/service/getIpInfo.php?ip=myip 则请求的 url 格式为 http://127.0.0.1:4500?remoteUrl=http://ip.taobao.com/service/getIpInfo.php?ip=myip

  2. post 请求 实际服务地址remoteUrlhttp://ip.taobao.com/service/getIpInfo2.php ,from 表单的数据为 ip=myip

    则请求的url 格式为: http://127.0.0.1:4500?remoteUrl=http://ip.taobao.com/service/getIpInfo2.php

其他参数和正常请求的设置方式一致

该代理服务,会完全复制发送CORS请求的请求头

需要注意的是: 若是获取本地的ip ,经过该代理服务获取的 ip 就找不准确了

Features

  • 代理所有的方法请求
  • 允许所有的CORS请求
  • 代码层面支持 https

部署

Normal

  1. git clone [email protected]:jjeejj/CORS-Proxy-Server.git
  2. npm install
  3. npm run start

Docker

docker build -t cors .
docker run -p YOUR_PORT:4500 -d cors
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].