Skip to content

Instantly share code, notes, and snippets.

View hcz's full-sized avatar
🔥

Serge Osipov hcz

🔥
View GitHub Profile
@hcz
hcz / cors.nginxconf
Created January 14, 2019 20:41 — forked from pauloricardomg/cors.nginxconf
Nginx configuration for CORS-enabled HTTPS proxy with origin white-list defined by a simple regex
#
# Acts as a nginx HTTPS proxy server
# enabling CORS only to domains matched by regex
# /https?://.*\.mckinsey\.com(:[0-9]+)?)/
#
# Based on:
# * http://blog.themillhousegroup.com/2013/05/nginx-as-cors-enabled-https-proxy.html
# * http://enable-cors.org/server_nginx.html
#
server {