micro-app
micro-app copied to clipboard
micro-app + react + umi,开发环境如何解决跨域问题
Access to fetch at 'http://192.168.1.4:3900/umi.dll.js' from origin 'http://localhost:7000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
需要看看子应用使用的框架的文档了,这里看起来是要去搜索 umi dev 环境跨域 如何设置。