Skip to content

bcentinaro/cors-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CorsProxy

A simple proxy server that enables CORS requests for Front End Devs. Thrown together quickly to help my wife with a test project.

Usage

Start the container with docker run -p 3000:80 -it bcentinaro/cors-proxy:latest

It will translate Get, Post, Put, and Delete requests, Options requests are intercepted and return the broadest access control headers possible.

Post Example

curl -X POST \
  http://localhost:3000/https://postman-echo.com/post \
  -H 'Accept: */*' \
  -H 'Accept-Encoding: gzip, deflate' \
  -H 'Content-Type: application/json' \
  -d '{ 
"test": "true"
}'

About

a quick Elixir/Phoenix based cors proxy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published