{"action":"created","issue":{"url":"https://api.github.com/repos/niklasvh/html2canvas/issues/1171","repository_url":"https://api.github.com/repos/niklasvh/html2canvas","labels_url":"https://api.github.com/repos/niklasvh/html2canvas/issues/1171/labels{/name}","comments_url":"https://api.github.com/repos/niklasvh/html2canvas/issues/1171/comments","events_url":"https://api.github.com/repos/niklasvh/html2canvas/issues/1171/events","html_url":"https://github.com/niklasvh/html2canvas/issues/1171","id":246301312,"number":1171,"title":"proxy not working and having issue loading cross domain images","user":{"login":"NikhilRadadiya","id":8606187,"avatar_url":"https://avatars3.githubusercontent.com/u/8606187?v=4","gravatar_id":"","url":"https://api.github.com/users/NikhilRadadiya","html_url":"https://github.com/NikhilRadadiya","followers_url":"https://api.github.com/users/NikhilRadadiya/followers","following_url":"https://api.github.com/users/NikhilRadadiya/following{/other_user}","gists_url":"https://api.github.com/users/NikhilRadadiya/gists{/gist_id}","starred_url":"https://api.github.com/users/NikhilRadadiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikhilRadadiya/subscriptions","organizations_url":"https://api.github.com/users/NikhilRadadiya/orgs","repos_url":"https://api.github.com/users/NikhilRadadiya/repos","events_url":"https://api.github.com/users/NikhilRadadiya/events{/privacy}","received_events_url":"https://api.github.com/users/NikhilRadadiya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-28T09:54:52Z","updated_at":"2017-08-07T09:26:57Z","closed_at":null,"body":"I'm trying to generate pdf with dynamic images from other server. and I know the domain name only.\r\n\r\nI've tried to use proxy like this,\r\n```\r\n\"proxy\": \"http://abc.xyz.com\",\r\n\"useCORS\": true,\r\n```\r\n\r\nbut it's not working\r\nAlso, there are ` No 'Access-Control-Allow-Origin' header is present on the requested resource` also,\r\nAlso tried to check some of the answers but no luck there.\r\nPlease help me with these issues"},"comment":{"url":"https://api.github.com/repos/niklasvh/html2canvas/issues/comments/320615506","html_url":"https://github.com/niklasvh/html2canvas/issues/1171#issuecomment-320615506","issue_url":"https://api.github.com/repos/niklasvh/html2canvas/issues/1171","id":320615506,"user":{"login":"lverledens","id":6207326,"avatar_url":"https://avatars2.githubusercontent.com/u/6207326?v=4","gravatar_id":"","url":"https://api.github.com/users/lverledens","html_url":"https://github.com/lverledens","followers_url":"https://api.github.com/users/lverledens/followers","following_url":"https://api.github.com/users/lverledens/following{/other_user}","gists_url":"https://api.github.com/users/lverledens/gists{/gist_id}","starred_url":"https://api.github.com/users/lverledens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lverledens/subscriptions","organizations_url":"https://api.github.com/users/lverledens/orgs","repos_url":"https://api.github.com/users/lverledens/repos","events_url":"https://api.github.com/users/lverledens/events{/privacy}","received_events_url":"https://api.github.com/users/lverledens/received_events","type":"User","site_admin":false},"created_at":"2017-08-07T09:26:57Z","updated_at":"2017-08-07T09:26:57Z","body":"I had the same issue and I found this beautiful solution:\r\n\r\nShort version: download the images to the local storage of the browser and change the src of all images to use the data stored in your local storage instead of a url pointing to a different server.\r\nLong version: http://ttola.com/avoiding-cors-issues-on-using-html2canvas-with-images/"}}
{"actor":{"display_login":"lverledens"}}