apacheconfhttpd.conf
开启header组件(去掉#):LoadModule headers_module modules/mod_headers.so
加入
Header set Access-Control-Allow-Origin: "*"
Header set Access-Control-Allow-Methods: "GET,POST,PUT,DELETE,OPTIONS"
Header set Access-Control-Allow-Headers: "Content-Type"