Skip to content

A simple nginx proxy that you can put in front of any domain to enable CORS.

Notifications You must be signed in to change notification settings

marcolarosa/nginx-cors-plus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-cors-proxy

A simple nginx proxy that you can put in front of any domain to enable CORS. Handles the preflight requests that can occur when trying to use application/json as the request content-type.

Build the Container

docker build -t nginx-cors-proxy .

Run the Container

Docker Run

docker run -it --rm -p 80:80 -e TARGET=http://example.com nginx-cors-proxy

Docker Compose

version: '2'
services:
  nginx:
    image: shakyshane/nginx-cors-plus
    ports:
      - 8090:80
    environment:
      - TARGET=https://example.com

About

A simple nginx proxy that you can put in front of any domain to enable CORS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 50.0%
  • Shell 50.0%