zeromicro / goctl-swagger

MIT License
211 stars 133 forks source link

cros是怎么回事 还没有请求到go-zero代码 #70

Closed gongzunyang closed 1 year ago

gongzunyang commented 1 year ago

Failed to fetch. Possible Reasons:

CORS Network Failure URL scheme must be "http" or "https" for CORS request. 报这样的错是怎么回事啊

MaxToby commented 1 year ago

跨域了。 初始化rest的时候Cors就可以了。。 rest.MustNewServer(c, rest.WithCors("*"))