您的位置:首页 > 科技 > 能源 > 河北招标信息网_北京网站设计首选 新鸿儒_如何网络媒体推广_cilimao磁力猫最新版地址

河北招标信息网_北京网站设计首选 新鸿儒_如何网络媒体推广_cilimao磁力猫最新版地址

2024/9/22 8:34:10 来源:https://blog.csdn.net/michael_jovi/article/details/142334884  浏览:    关键词:河北招标信息网_北京网站设计首选 新鸿儒_如何网络媒体推广_cilimao磁力猫最新版地址
河北招标信息网_北京网站设计首选 新鸿儒_如何网络媒体推广_cilimao磁力猫最新版地址

location / {
            if ($request_method !~ ^(GET|HEAD|POST)$) {
                return 405;
            }
            proxy_pass    https://www.xxx.com:8743;
            
            proxy_redirect https://www.xxx.com:7743/index https://www.xxx.com/index;
            proxy_redirect https://www.xxx.com:8743/index https://www.xxx.com/index;
            proxy_redirect https://www.xxx.com:8743/login https://www.xxx.com/login;
        
            #echo '通过域名访问,方法二, $host, $remote_addr'; 
            #Clickjacking:CSP frame-ancestors missing
            #将本站内部http链接自动改为https
            add_header Content-Security-Policy "frame-ancestors 'self'; default-src *;style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';img-src * data:;worker-src * blob:;font-src 'self' data:;";
            add_header  X-Frame-Options SAMEORIGIN always;
            add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
            add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
            add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
            add_header X-XSS-Protection "1; mode=block";
            add_header X-Content-Type-Options "nosniff";
            add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
            add_header Cache-Control "private, no-cashe";
            proxy_cookie_path / "/; name=value; HttpOnly; Secure; SameSite=None";
            add_header Set-Cookie "Path=/; name=value; HttpOnly; Secure; SameSite=None";  
        }

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com