NicolasCaous / nginx-cors-plus

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nginx-cors-plus

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.

** Docker Run: **

docker run -p 8080:80 -e TARGET=example.com caousn/nginx-cors-plus

** Docker Compose: **

version: '2'
services:
  nginx:
    image: caousn/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.


Languages

Language:Dockerfile 50.0%Language:Shell 50.0%