跨域请求自定义headers头信息

DocumentRoot “D:\phpStudy\PHPTutorial\WWW\emscrm_local\public”

Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
Header set Access-Control-Allow-Origin “*”
Header set Access-Control-Allow-Headers “memberid,Authorization,DNT,User-Agent,Keep-Alive,Content-Type,accept,origin,X-Requested-With”
Header set Access-Control-Allow-Methods “GET, POST, OPTIONS”

猜你喜欢

转载自blog.csdn.net/weixin_45018191/article/details/92594768