Пробовал так:
server {
listen 80;
server_name test.example.com;
location / {
proxy_pass http://10.172.10.42:3443;
error_page 413 =413 /413;
}
location /413 {
proxy_set_header X-Target $request_uri;
proxy_set_header Access-Control-Allow-Origin "*";
proxy_set_header Access-Control-Allow-Credentials "true";
proxy_set_header Access-Control-Allow-Methods "OPTIONS, GET, POST, DELETE, PUT";
proxy_set_header Access-Control-Allow-Headers "Content-Type, Access-Control-Allow-Origin, Access-Control-Allow-Credentials, Access-Control-Allow-Methods, Access-Control-Allow-Headers, Authorization, X-Requested-With";
}
proxy_read_timeout 950s;
}
не работает