前端项目本地引用http-server启动服务时出现跨域错误

启动http-server服务时加上 --cors "*"
启动代码:http-server --cors "*"
posted @ 2024-12-17 16:57  前端小学生。  阅读(29)  评论(0)    收藏  举报