ctra-wang / issue-2163

https://github.com/kevwan/go-zero/tree/fix/cors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

issue-2163

https://github.com/kevwan/go-zero/tree/fix/cors

debug the issue-2163

steps:

1、 Reference the branche fix/cors to my local repostory [link: github.com/Holyson/test-go-zero-cors v0.0.1]

image

2、 Start the main program [api/weixinapi.go] if your port conflict,please change your port at etc/xx.yaml

image

3、Curl the url

curl -i -X POST http://127.0.0.1:1112/test

the response header include the CORS info

image

4、Test pass

About

https://github.com/kevwan/go-zero/tree/fix/cors


Languages

Language:Go 97.7%Language:Shell 2.3%