{"action":"closed","issue":{"url":"https://api.github.com/repos/apis-is/apis/issues/479","repository_url":"https://api.github.com/repos/apis-is/apis","labels_url":"https://api.github.com/repos/apis-is/apis/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/apis-is/apis/issues/479/comments","events_url":"https://api.github.com/repos/apis-is/apis/issues/479/events","html_url":"https://github.com/apis-is/apis/issues/479","id":395506901,"node_id":"MDU6SXNzdWUzOTU1MDY5MDE=","number":479,"title":"CORS error on weather endpoint","user":{"login":"saevarom","id":143557,"node_id":"MDQ6VXNlcjE0MzU1Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/143557?v=4","gravatar_id":"","url":"https://api.github.com/users/saevarom","html_url":"https://github.com/saevarom","followers_url":"https://api.github.com/users/saevarom/followers","following_url":"https://api.github.com/users/saevarom/following{/other_user}","gists_url":"https://api.github.com/users/saevarom/gists{/gist_id}","starred_url":"https://api.github.com/users/saevarom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saevarom/subscriptions","organizations_url":"https://api.github.com/users/saevarom/orgs","repos_url":"https://api.github.com/users/saevarom/repos","events_url":"https://api.github.com/users/saevarom/events{/privacy}","received_events_url":"https://api.github.com/users/saevarom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-01-03T09:35:57Z","updated_at":"2019-01-03T09:54:43Z","closed_at":"2019-01-03T09:54:43Z","author_association":"NONE","body":"Describe the issue you are having here.\r\n\r\n### Steps to reproduce\r\n\r\n* Call the weather endpoint with the provided example in a browser console. You will get a CORS error.\r\n\r\n```\r\n$.ajax({\r\n  'url': 'http://apis.is/weather/observations/en',\r\n  'type': 'GET',\r\n  'dataType': 'json',\r\n  'data': {'stations': '1,422', 'time': '1h', 'anytime': '0'},\r\n  'success': function(response) {\r\n    console.log(response);\r\n  }\r\n});\r\n```\r\n\r\nThe resulting error:\r\n\r\n<img width=\"511\" alt=\"screenshot 2019-01-03 09 35 36\" src=\"https://user-images.githubusercontent.com/143557/50631061-eec63e00-0f3a-11e9-9653-3359a4479b0d.png\">\r\n"}}
{"actor":{"display_login":"saevarom"}}