出现 has been blocked by CORS policy: No ‘Access-Control-Allow-Origin‘ header is present on the 解决方法
目录1.问题所示2.原理分析3.解决方法1.问题所示执行代码的时候出现如下提示:AccesstoXMLHttpRequestat'http://127.0.0.1:5000/api/data'fromorigin'http://10.197.0.79:8080'hasbeenblockedbyCORSpolicy:No'Access-Control-Allow-Origin'headerispre