{"action":"created","issue":{"url":"https://api.github.com/repos/BloomSN/bonar/issues/1","repository_url":"https://api.github.com/repos/BloomSN/bonar","labels_url":"https://api.github.com/repos/BloomSN/bonar/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/BloomSN/bonar/issues/1/comments","events_url":"https://api.github.com/repos/BloomSN/bonar/issues/1/events","html_url":"https://github.com/BloomSN/bonar/issues/1","id":165543917,"number":1,"title":"Težave pri prejemanju JSON podatkov","user":{"login":"KristjanBajuk","id":9990581,"avatar_url":"https://avatars.githubusercontent.com/u/9990581?v=3","gravatar_id":"","url":"https://api.github.com/users/KristjanBajuk","html_url":"https://github.com/KristjanBajuk","followers_url":"https://api.github.com/users/KristjanBajuk/followers","following_url":"https://api.github.com/users/KristjanBajuk/following{/other_user}","gists_url":"https://api.github.com/users/KristjanBajuk/gists{/gist_id}","starred_url":"https://api.github.com/users/KristjanBajuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristjanBajuk/subscriptions","organizations_url":"https://api.github.com/users/KristjanBajuk/orgs","repos_url":"https://api.github.com/users/KristjanBajuk/repos","events_url":"https://api.github.com/users/KristjanBajuk/events{/privacy}","received_events_url":"https://api.github.com/users/KristjanBajuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-14T11:53:39Z","updated_at":"2016-07-14T12:24:16Z","closed_at":null,"body":"Zdravo,\r\nNevem če je pri vas problem, ampak dobim takšen error, ko poskušam dobiti JSON podatke. \r\n\r\n\"XMLHttpRequest cannot load http://www.bonar.si/api/restaurants. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.\"\r\n\r\nČe v chromu izklopim web security, potem dela. ( chrome.exe --user-data-dir=\"C:/Chrome dev session\" --disable-web-security)\r\n\r\nZanima me, kaj bi moral narediti da bi delalo normalno, brez da izklopim varnost? "},"comment":{"url":"https://api.github.com/repos/BloomSN/bonar/issues/comments/232650541","html_url":"https://github.com/BloomSN/bonar/issues/1#issuecomment-232650541","issue_url":"https://api.github.com/repos/BloomSN/bonar/issues/1","id":232650541,"user":{"login":"BloomSN","id":5353463,"avatar_url":"https://avatars.githubusercontent.com/u/5353463?v=3","gravatar_id":"","url":"https://api.github.com/users/BloomSN","html_url":"https://github.com/BloomSN","followers_url":"https://api.github.com/users/BloomSN/followers","following_url":"https://api.github.com/users/BloomSN/following{/other_user}","gists_url":"https://api.github.com/users/BloomSN/gists{/gist_id}","starred_url":"https://api.github.com/users/BloomSN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BloomSN/subscriptions","organizations_url":"https://api.github.com/users/BloomSN/orgs","repos_url":"https://api.github.com/users/BloomSN/repos","events_url":"https://api.github.com/users/BloomSN/events{/privacy}","received_events_url":"https://api.github.com/users/BloomSN/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T12:24:16Z","updated_at":"2016-07-14T12:24:16Z","body":"Po pravici ne vem kaj bi bila lahko napaka, preveri če ti tole kaj pomaga:\r\n\r\n`jQuery.ajax({\r\n    url: \"http://www.bonar.si/api/restaurants.php\",\r\n    type: \"GET\",\r\n})\r\n.done(function(data, textStatus, jqXHR) {\r\n    console.log(\"HTTP Request Succeeded: \" + jqXHR.status);\r\n    console.log(data);\r\n})\r\n.fail(function(jqXHR, textStatus, errorThrown) {\r\n    console.log(\"HTTP Request Failed\");\r\n})\r\n.always(function() {\r\n    /* ... */\r\n});`\r\n"}}
{"actor":{"display_login":"BloomSN"}}