{"action":"closed","issue":{"url":"https://api.github.com/repos/astaxie/beego/issues/2066","repository_url":"https://api.github.com/repos/astaxie/beego","labels_url":"https://api.github.com/repos/astaxie/beego/issues/2066/labels{/name}","comments_url":"https://api.github.com/repos/astaxie/beego/issues/2066/comments","events_url":"https://api.github.com/repos/astaxie/beego/issues/2066/events","html_url":"https://github.com/astaxie/beego/issues/2066","id":167784899,"number":2066,"title":"Api自动化除了本机可以打开，别的机器上显示Can't read from server. It may not have the appropriate access-control-origin settings.","user":{"login":"suhaishuang","id":7436804,"avatar_url":"https://avatars.githubusercontent.com/u/7436804?v=3","gravatar_id":"","url":"https://api.github.com/users/suhaishuang","html_url":"https://github.com/suhaishuang","followers_url":"https://api.github.com/users/suhaishuang/followers","following_url":"https://api.github.com/users/suhaishuang/following{/other_user}","gists_url":"https://api.github.com/users/suhaishuang/gists{/gist_id}","starred_url":"https://api.github.com/users/suhaishuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suhaishuang/subscriptions","organizations_url":"https://api.github.com/users/suhaishuang/orgs","repos_url":"https://api.github.com/users/suhaishuang/repos","events_url":"https://api.github.com/users/suhaishuang/events{/privacy}","received_events_url":"https://api.github.com/users/suhaishuang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-27T07:00:01Z","updated_at":"2016-07-29T01:58:49Z","closed_at":"2016-07-29T01:58:49Z","body":"1.bee version\r\nbee   :1.4.1\r\nbeego :1.6.1\r\nGo    :go version go1.6.2 linux/amd64\r\n\r\n2.go env\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/hxws/work\"\r\nGORACE=\"\"\r\nGOROOT=\"/home/hxws/public/tool/go\"\r\nGOTOOLDIR=\"/home/hxws/public/tool/go/pkg/tool/linux_amd64\"\r\nGO15VENDOREXPERIMENT=\"1\"\r\nCC=\"gcc\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\n\r\n![swagger](https://cloud.githubusercontent.com/assets/7436804/17166603/9b56a626-540a-11e6-9e3c-21777452078d.png)\r\n\r\n\r\n看了文档，是下面的问题吗？加在哪\r\nAPI增加CORS支持\r\nctx.Output.Header(\"Access-Control-Allow-Origin\", \"*\")\r\n\r\n"}}
{"actor":{"display_login":"suhaishuang"}}