Access to XMLHttpRequest at “ xxx” from origin 'null' has been blocked by CORS policy解决方法
本人搭建好PHP后端框架并部署到服务器上后,前端访问后端接口发生了AccesstoXMLHttpRequestat“xxx”fromorigin'null'hasbeenblockedbyCORSpolicy:Crossoriginrequestsareonlysupportedforprotocolschemes:http,data,chrome,chrome-extension,https.的