Skip to content

Instantly share code, notes, and snippets.

View voskobovich's full-sized avatar

Vitalii Voskobovich voskobovich

View GitHub Profile
@voskobovich
voskobovich / cors-nginx.conf
Created February 15, 2016 07:22 — forked from michiel/cors-nginx.conf
Wide-open CORS config for nginx
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#
@voskobovich
voskobovich / nginx.conf
Last active February 14, 2016 15:45 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your location block(s):
#
# include cors_support;
#
# A limitation to this method is that Nginx doesn't currently send headers