{"action":"created","issue":{"url":"https://api.github.com/repos/WizardFactory/TodayWeather/issues/62","labels_url":"https://api.github.com/repos/WizardFactory/TodayWeather/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/WizardFactory/TodayWeather/issues/62/comments","events_url":"https://api.github.com/repos/WizardFactory/TodayWeather/issues/62/events","html_url":"https://github.com/WizardFactory/TodayWeather/issues/62","id":102679134,"number":62,"title":"Server로 지역정보 전달하고, 시간별, 일간 날씨 정보 가지고 오기","user":{"login":"kimalec","id":6895272,"avatar_url":"https://avatars.githubusercontent.com/u/6895272?v=3","gravatar_id":"","url":"https://api.github.com/users/kimalec","html_url":"https://github.com/kimalec","followers_url":"https://api.github.com/users/kimalec/followers","following_url":"https://api.github.com/users/kimalec/following{/other_user}","gists_url":"https://api.github.com/users/kimalec/gists{/gist_id}","starred_url":"https://api.github.com/users/kimalec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimalec/subscriptions","organizations_url":"https://api.github.com/users/kimalec/orgs","repos_url":"https://api.github.com/users/kimalec/repos","events_url":"https://api.github.com/users/kimalec/events{/privacy}","received_events_url":"https://api.github.com/users/kimalec/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WizardFactory/TodayWeather/labels/frontend","name":"frontend","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"skywlrl","id":8368939,"avatar_url":"https://avatars.githubusercontent.com/u/8368939?v=3","gravatar_id":"","url":"https://api.github.com/users/skywlrl","html_url":"https://github.com/skywlrl","followers_url":"https://api.github.com/users/skywlrl/followers","following_url":"https://api.github.com/users/skywlrl/following{/other_user}","gists_url":"https://api.github.com/users/skywlrl/gists{/gist_id}","starred_url":"https://api.github.com/users/skywlrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skywlrl/subscriptions","organizations_url":"https://api.github.com/users/skywlrl/orgs","repos_url":"https://api.github.com/users/skywlrl/repos","events_url":"https://api.github.com/users/skywlrl/events{/privacy}","received_events_url":"https://api.github.com/users/skywlrl/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/WizardFactory/TodayWeather/milestones/1","html_url":"https://github.com/WizardFactory/TodayWeather/milestones/First%20Release","labels_url":"https://api.github.com/repos/WizardFactory/TodayWeather/milestones/1/labels","id":1210195,"number":1,"title":"First Release","description":"목적 : App 등록.\r\n\r\n로딩페이지\r\n지역표시, 현재 온도, 간략 정보 \r\n어제 0시~내일 24시까지 온도, 예상온도 표시 (Main line)\r\n그저께 0시~오늘 24시까지 지난 온도(sub line)\r\n구름정보, 강수량","creator":{"login":"kimalec","id":6895272,"avatar_url":"https://avatars.githubusercontent.com/u/6895272?v=3","gravatar_id":"","url":"https://api.github.com/users/kimalec","html_url":"https://github.com/kimalec","followers_url":"https://api.github.com/users/kimalec/followers","following_url":"https://api.github.com/users/kimalec/following{/other_user}","gists_url":"https://api.github.com/users/kimalec/gists{/gist_id}","starred_url":"https://api.github.com/users/kimalec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimalec/subscriptions","organizations_url":"https://api.github.com/users/kimalec/orgs","repos_url":"https://api.github.com/users/kimalec/repos","events_url":"https://api.github.com/users/kimalec/events{/privacy}","received_events_url":"https://api.github.com/users/kimalec/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":41,"state":"open","created_at":"2015-07-15T21:54:36Z","updated_at":"2015-08-31T22:15:49Z","due_on":"2015-09-05T15:00:00Z","closed_at":null},"comments":3,"created_at":"2015-08-24T01:02:17Z","updated_at":"2015-09-01T01:55:19Z","closed_at":null,"body":"REST API를 통하여 Server로 지역정보 전달하고, 시간별, 일간 날씨 정보 가지고 오기"},"comment":{"url":"https://api.github.com/repos/WizardFactory/TodayWeather/issues/comments/136549302","html_url":"https://github.com/WizardFactory/TodayWeather/issues/62#issuecomment-136549302","issue_url":"https://api.github.com/repos/WizardFactory/TodayWeather/issues/62","id":136549302,"user":{"login":"kimalec","id":6895272,"avatar_url":"https://avatars.githubusercontent.com/u/6895272?v=3","gravatar_id":"","url":"https://api.github.com/users/kimalec","html_url":"https://github.com/kimalec","followers_url":"https://api.github.com/users/kimalec/followers","following_url":"https://api.github.com/users/kimalec/following{/other_user}","gists_url":"https://api.github.com/users/kimalec/gists{/gist_id}","starred_url":"https://api.github.com/users/kimalec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimalec/subscriptions","organizations_url":"https://api.github.com/users/kimalec/orgs","repos_url":"https://api.github.com/users/kimalec/repos","events_url":"https://api.github.com/users/kimalec/events{/privacy}","received_events_url":"https://api.github.com/users/kimalec/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T01:55:19Z","updated_at":"2015-09-01T01:55:19Z","body":"아래 두 가지 명령어에 대하여 CORS 문제가 발생한다.\r\n실제 디바이스에 올린 경우는 문제가 없지만 개발을 용이하게 하기 위해 수정이 필요하다.\r\n```bash\r\n$ ionic serve\r\n$ ionic run -l\r\n```\r\n\r\nionic.project 파일에 아래와 같이 proxyUrl를 넣는 건 문제가 아닌데, 문제는 constant 에 저장되는 url는 상황에 따라 변경해줘야 한다는 것임. \r\n\r\nionic.project\r\n```js\r\n\"proxies\":[\r\n    {\r\n      \"path\":\"/town\",\r\n      \"proxyUrl\":\"http://todayweather-wizardfactory.rhcloud.com/town\"\r\n    }\r\n  ]\r\n```\r\n\r\napp.js\r\n```js\r\n.constant('TownEndpoint', {\r\n        //url: 'http://todayweather-wizardfactory.rhcloud.com/town'\r\n        url: '/town'\r\n    })\r\n```\r\n\r\n차라리 test browser에서 CORS를 disable 시키는 것이 편할 것으로 보임.\r\n\r\n참고:\r\nhttp://blog.ionic.io/handling-cors-issues-in-ionic/\r\nhttp://blog.saltfactory.net/ionic/solve-cross-domain-problem-via-ionic-proxy.html\r\n"}}