server {
listen 80;
server_name site.dev;
add_header 'Access-Control-Allow-Credentials' 'true';
location / {
proxy_pass http://127.0.0.1:3001/;
}
}
consideration: nots neccesary add "Access-Control-Allow-Origin" "*"
and 204 Option
if app have a cors activate