cros是怎么回事 还没有请求到go-zero代码
gongzunyang opened this issue · 1 comments
gongzunyang commented
Failed to fetch.
Possible Reasons:
CORS
Network Failure
URL scheme must be "http" or "https" for CORS request.
报这样的错是怎么回事啊
MaxToby commented
跨域了。
初始化rest的时候Cors就可以了。。
rest.MustNewServer(c, rest.WithCors("*"))