#指定允许其他域名访问 'Access-Control-Allow-Origin:*'
Header set Access-Control-Allow-Origin "*"
##全局配置如下
vi httpd.conf 最下面添加如下配置:
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin: "*"
Header set Access-Control-Allow-Methods: "GET,POST,PUT,DELETE,OPTIONS"
Header set Access-Control-Allow-Headers: "x-requested-with,Content-Type"
</IfModule>