Nginx proxy_set_header未添加到POST请求的标头中

这是我第一次设置nginx。 对于一个代理服务器,我必须添加授权 它有效,但是仅对于“ GET”方法,在“ post”请求上没有授权标头 我也有向此代理服务器发帖的请求

    server {
        listen 80;
        server_name xxxxxxxxx;
        return 301 xxxxxxxxx;
    }
    server {
        listen 443;
        server_name {$server_name};

        location /path {
            proxy_set_header Host xxxxxxxxx;
            proxy_pass xxxxx;
            proxy_set_header access_Control_Allow_Headers "Authorization";
            proxy_set_header Authorization "Basic xxxxxxxxxx";
            proxy_pass_header Authorization;
            proxy_pass_header access_Control_Allow_Headers;
        }
    }
chntm2000 回答:Nginx proxy_set_header未添加到POST请求的标头中

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3147184.html

大家都在问