Ajax跨域请求时出现Access to XMLHttpRequest at 'xxx' from origin 'xxx' has been been blocked by CORS policy
Ajax请求报错,出现如下错误:AccesstoXMLHttpRequestat'localhost:8888/register'fromorigin'http://localhost:8080'hasbeenblockedbyCORSpolicy:Crossoriginrequestsareonlysupportedforprotocolschemes:http,data,chrome,chro