Skip to content

Instantly share code, notes, and snippets.

View alexandermitsyk's full-sized avatar
🎯
Focusing

Alexander Mitsyk alexandermitsyk

🎯
Focusing
  • Prefixbox LTD
  • Hungary
View GitHub Profile
@m4ttbrock
m4ttbrock / nginx-nodejs-cors
Last active November 9, 2020 18:06
Nginx Nodejs CORS to subdomain
server {
listen 80;
server_name subdomain.example.com;
access_log /var/log/nginx/example.access.log;
location / {
if ($http_origin ~* (https?://.*\.example\.com(:[0-9]+)?)) {
set $cors "true";