{"action":"created","issue":{"url":"https://api.github.com/repos/agilecrm/javascript-api/issues/17","repository_url":"https://api.github.com/repos/agilecrm/javascript-api","labels_url":"https://api.github.com/repos/agilecrm/javascript-api/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/agilecrm/javascript-api/issues/17/comments","events_url":"https://api.github.com/repos/agilecrm/javascript-api/issues/17/events","html_url":"https://github.com/agilecrm/javascript-api/issues/17","id":230764532,"node_id":"MDU6SXNzdWUyMzA3NjQ1MzI=","number":17,"title":"api url points to localhost:8888","user":{"login":"luisgj","id":5843809,"node_id":"MDQ6VXNlcjU4NDM4MDk=","avatar_url":"https://avatars0.githubusercontent.com/u/5843809?v=4","gravatar_id":"","url":"https://api.github.com/users/luisgj","html_url":"https://github.com/luisgj","followers_url":"https://api.github.com/users/luisgj/followers","following_url":"https://api.github.com/users/luisgj/following{/other_user}","gists_url":"https://api.github.com/users/luisgj/gists{/gist_id}","starred_url":"https://api.github.com/users/luisgj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisgj/subscriptions","organizations_url":"https://api.github.com/users/luisgj/orgs","repos_url":"https://api.github.com/users/luisgj/repos","events_url":"https://api.github.com/users/luisgj/events{/privacy}","received_events_url":"https://api.github.com/users/luisgj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-23T16:10:27Z","updated_at":"2018-09-03T15:20:22Z","closed_at":null,"author_association":"NONE","body":"Requests to the api are being rejected because the api url is being set incorrectly. This is almost a replica of issue number 13 but im using jquery instead of angularjs.\r\n\r\nhttp://localhost:8888/core/js/api/contacts?callback=json49788018478453026 ......\r\n\r\nI think this is due to \"this.namespace\" the url builder that is in place. it tries to find this.namespace, which is undefined, and this points the script to localhost instead of agilecrm.com.\r\n\r\nI'm using the latest script via your CDN, and with essentially a copy paste of what is listed below."},"comment":{"url":"https://api.github.com/repos/agilecrm/javascript-api/issues/comments/418143915","html_url":"https://github.com/agilecrm/javascript-api/issues/17#issuecomment-418143915","issue_url":"https://api.github.com/repos/agilecrm/javascript-api/issues/17","id":418143915,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODE0MzkxNQ==","user":{"login":"GuiCarneiro","id":5458742,"node_id":"MDQ6VXNlcjU0NTg3NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/5458742?v=4","gravatar_id":"","url":"https://api.github.com/users/GuiCarneiro","html_url":"https://github.com/GuiCarneiro","followers_url":"https://api.github.com/users/GuiCarneiro/followers","following_url":"https://api.github.com/users/GuiCarneiro/following{/other_user}","gists_url":"https://api.github.com/users/GuiCarneiro/gists{/gist_id}","starred_url":"https://api.github.com/users/GuiCarneiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuiCarneiro/subscriptions","organizations_url":"https://api.github.com/users/GuiCarneiro/orgs","repos_url":"https://api.github.com/users/GuiCarneiro/repos","events_url":"https://api.github.com/users/GuiCarneiro/events{/privacy}","received_events_url":"https://api.github.com/users/GuiCarneiro/received_events","type":"User","site_admin":false},"created_at":"2018-09-03T15:20:22Z","updated_at":"2018-09-03T15:20:22Z","author_association":"NONE","body":"I'm having the same problem, how do I fix it?"}}
{"actor":{"display_login":"GuiCarneiro"}}