...
const opts = {
origin: ["https://syqq.ru", "https://auth.syqq.ru"],
...
};
app.use(cors(opts))
...
server {
listen 443 ssl;
server_name auth.syqq.ru;
ssl...
location /auth {
...
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}