nginx添加自定义header

nginx.conf,如下:
location / {
        
add_header  X-UA-Compatible 'IE=Edge,chrome=1'; 
            root   www/htdocs;
            index  index.php index.html index.htm;
        }





其中,X-UA-Compatible是名称,IE=Edge,chrome=1是值,可以随意自定义

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

桂ICP备19000498号-3