{"action":"created","issue":{"url":"https://api.github.com/repos/appiphony/appiphony-lightning-js/issues/57","repository_url":"https://api.github.com/repos/appiphony/appiphony-lightning-js","labels_url":"https://api.github.com/repos/appiphony/appiphony-lightning-js/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/appiphony/appiphony-lightning-js/issues/57/comments","events_url":"https://api.github.com/repos/appiphony/appiphony-lightning-js/issues/57/events","html_url":"https://github.com/appiphony/appiphony-lightning-js/issues/57","id":193635875,"number":57,"title":"Icons in slds not displaying due to unsafe attempt error","user":{"login":"Lanceshi2","id":9388090,"avatar_url":"https://avatars.githubusercontent.com/u/9388090?v=3","gravatar_id":"","url":"https://api.github.com/users/Lanceshi2","html_url":"https://github.com/Lanceshi2","followers_url":"https://api.github.com/users/Lanceshi2/followers","following_url":"https://api.github.com/users/Lanceshi2/following{/other_user}","gists_url":"https://api.github.com/users/Lanceshi2/gists{/gist_id}","starred_url":"https://api.github.com/users/Lanceshi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lanceshi2/subscriptions","organizations_url":"https://api.github.com/users/Lanceshi2/orgs","repos_url":"https://api.github.com/users/Lanceshi2/repos","events_url":"https://api.github.com/users/Lanceshi2/events{/privacy}","received_events_url":"https://api.github.com/users/Lanceshi2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-05T23:02:21Z","updated_at":"2016-12-05T23:37:09Z","closed_at":null,"body":"I am using Appyphony Lightning JS to create lookup relationship field for me. Everything else was working pretty well. But the slds icons are not displaying well. I am constantly getting the below error in chrome's developer tool:\r\n\r\n> Unsafe attempt to load URL https://ap2.salesforce.com/assets/icons/standard-sprite/svg/symbols.svg#account from frame with URL https://v6.ap2.visual.force.com/apex/Auto_Subscription_Edit?retURL=%2Fa08%2Fo&save_new=1&sfdc.override=1. Domains, protocols and ports must match.\r\n\r\n![image not displaying](https://cloud.githubusercontent.com/assets/9388090/20906173/875d94e6-bb92-11e6-8cd9-049d68e1e419.PNG)\r\n\r\nI have added the initialization code as below:\r\n\r\n        var assetsLocation = \"{!URLFOR($Resource.Slds213, 'assets')}\";\r\n        $.aljsInit({\r\n            assetsLocation: '',\r\n            scoped: true\r\n        });\r\nIs there anything else I am missing here?"},"comment":{"url":"https://api.github.com/repos/appiphony/appiphony-lightning-js/issues/comments/265013692","html_url":"https://github.com/appiphony/appiphony-lightning-js/issues/57#issuecomment-265013692","issue_url":"https://api.github.com/repos/appiphony/appiphony-lightning-js/issues/57","id":265013692,"user":{"login":"Lanceshi2","id":9388090,"avatar_url":"https://avatars.githubusercontent.com/u/9388090?v=3","gravatar_id":"","url":"https://api.github.com/users/Lanceshi2","html_url":"https://github.com/Lanceshi2","followers_url":"https://api.github.com/users/Lanceshi2/followers","following_url":"https://api.github.com/users/Lanceshi2/following{/other_user}","gists_url":"https://api.github.com/users/Lanceshi2/gists{/gist_id}","starred_url":"https://api.github.com/users/Lanceshi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lanceshi2/subscriptions","organizations_url":"https://api.github.com/users/Lanceshi2/orgs","repos_url":"https://api.github.com/users/Lanceshi2/repos","events_url":"https://api.github.com/users/Lanceshi2/events{/privacy}","received_events_url":"https://api.github.com/users/Lanceshi2/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T23:37:09Z","updated_at":"2016-12-05T23:37:09Z","body":"Hi @kevinberonilla , \r\n\r\nI have updated the code according to your suggestion. But I am still getting the same error. \r\n\r\nTo clarify, I am using <use xlink:href=\"{!URLFOR($Resource.Slds213, 'assets/icons/custom-sprite/svg/symbols.svg#custom27')}\"></use> to get the search icon which works fine for me. \r\n\r\nAlso, the initialization code was used inside $(document).ready() function. Is there anything I ought to change here? "}}
{"actor":{"display_login":"Lanceshi2"}}