真是一部良心的教学视频,比作者技术好的程序员很多,可是能讲这么好的,确实罕见。为作者点赞,it界就需要这样的大神。
2018-03-28
httpd-vhosts.conf中修改时ProxyPass / http://localhost:8082/
ProxyPass后面的 / 前后记得加空格,不然会报错
ProxyPass后面的 / 前后记得加空格,不然会报错
2018-03-26
Header always set Access-Control-Allow-Methods "*"
Header always set Access-Control-Allow-Credentials "true"
Header always set Access-Control-Max-Age "3600"
# 处理预检命令OPTIONS, 直接返回204
RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ "/" [R=204,L]
Header always set Access-Control-Allow-Credentials "true"
Header always set Access-Control-Max-Age "3600"
# 处理预检命令OPTIONS, 直接返回204
RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ "/" [R=204,L]
2018-03-25
#把请求头的origin值返回到Access-Control-Allow-Origin字段
Header always set Access-Control-Allow-Origin "expr=%{req:origin}"
#把请求头的Access-Control-Request-Headers值返回到Access-Control-Allow-Headers字段
Header always set Access-Control-Allow-Headers "expr=%{req:Access-Control-Request-Headers}"
Header always set Access-Control-Allow-Origin "expr=%{req:origin}"
#把请求头的Access-Control-Request-Headers值返回到Access-Control-Allow-Headers字段
Header always set Access-Control-Allow-Headers "expr=%{req:Access-Control-Request-Headers}"
2018-03-25