阻止交叉源访问问题。
网上可搜N多,解决办法都差不多,其中一种:
add_header Access-Control-Allow-Origin http://xxxx:port;
add_header Access-Control-Allow-Credentials true;
add_header Access-Control-Allow-Headers Content-Type,Accept;
add_header Access-Control-Allow-Methods GET;