Skip to content

Instantly share code, notes, and snippets.

View lptai's full-sized avatar
🏃‍♂️

Tài Lê lptai

🏃‍♂️
View GitHub Profile
@lptai
lptai / cors-nginx.conf
Created August 11, 2019 08:50 — 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' '*';
#
@lptai
lptai / nginx.conf
Created August 9, 2019 07:52 — 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;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which