Loading... ### go-zero接口跨域解决方案 > **解决方案一** 根据官方文档中介绍,这样改即可解决跨域 ```go server := rest.MustNewServer(c.RestConf) // 修改为 server := rest.MustNewServer(c.RestConf, rest.WithCors()) ``` 最后修改:2022 年 06 月 21 日 © 允许规范转载 打赏 赞赏作者 微信 赞 0 如果觉得我的文章对你有用,请随意赞赏