求助,如何解决vite.config.js代理配置失效问题?
如何解决vite.config.js代理配置失效问题?问题描述:一个前后端分离项目,前端为vue3+vite5+uniapp项目,后端接口为[链接],微信小程序中可以访问的到,但是H5中会显示跨域问题Access to XMLHttpRequest at '[链接]' from origin '[链接]' has been blocked by CORS policy: Response to preflight request doesn't pass ...
1 回答1.1k 阅读✓ 已解决