我尝试过这个:
1-.htaccess
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
2-.htaccess
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
3-.htaccess or apache virtual host
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
4-.htaccess or apache virtual host
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
5-.htaccess
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
我也添加过CGIPassAuth On
,.htaccess
但apache.conf
没有成功。
我也在虚拟主机中添加了标头,但没有成功。
关于如何让安全标头做出响应,您有什么想法吗?
谢谢