本地7001端口访问http://127.0.0.1:8080/static/fonts/element-icons.535877f.woff,会显示跨域问题
Access to font at 'http://127.0.0.1:8080/static/fonts/element-icons.535877f.woff' from origin 'http://127.0.0.1:7001' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
###8080的服务器多返回一个 header Access-Control-Allow-Origin: 127.0.0.1:7001
或者 Access-Control-Allow-Origin: *
两个端口号不一样肯定会又跨域的报错的,要们和楼上说的在服务器端允许跨域,要门你就不要分开引入字体