{"id":16672824,"url":"https://github.com/brcontainer/html2canvas-asp-vbscript-proxy","last_synced_at":"2026-03-18T21:21:40.863Z","repository":{"id":10009576,"uuid":"12045978","full_name":"brcontainer/html2canvas-asp-vbscript-proxy","owner":"brcontainer","description":"Vbscript (asp classic) Proxy html2canvas","archived":false,"fork":false,"pushed_at":"2020-11-24T11:31:22.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T18:43:33.960Z","etag":null,"topics":["asp","asp-classic","html2canvas","html2canvas-proxy","vbscript"],"latest_commit_sha":null,"homepage":null,"language":"Classic ASP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"gdbinit/Gatekeerper","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brcontainer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-12T02:10:48.000Z","updated_at":"2022-07-08T02:01:41.000Z","dependencies_parsed_at":"2022-08-28T17:33:16.391Z","dependency_job_id":null,"html_url":"https://github.com/brcontainer/html2canvas-asp-vbscript-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brcontainer%2Fhtml2canvas-asp-vbscript-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brcontainer%2Fhtml2canvas-asp-vbscript-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brcontainer%2Fhtml2canvas-asp-vbscript-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brcontainer%2Fhtml2canvas-asp-vbscript-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brcontainer","download_url":"https://codeload.github.com/brcontainer/html2canvas-asp-vbscript-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243324266,"owners_count":20273098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp","asp-classic","html2canvas","html2canvas-proxy","vbscript"],"created_at":"2024-10-12T12:07:26.459Z","updated_at":"2025-12-25T08:53:04.992Z","avatar_url":"https://github.com/brcontainer.png","language":"Classic ASP","readme":"html2canvas-asp-vbscript-proxy 0.0.4\n=====================\n\n#### Vbscript (asp classic) Proxy html2canvas\n\nThis script allows you to use html2canvas.js with different servers, ports and protocols (http, https),\npreventing to occur \"tainted\" when exporting the `\u003ccanvas\u003e` for image.\n\n### Others scripting language\n\nYou do not use ASP Classic, but need html2canvas working with proxy, see other proxies:\n\n* [html2canvas proxy in php](https://github.com/brcontainer/html2canvas-php-proxy)\n* [html2canvas proxy in asp.net (csharp)](https://github.com/brcontainer/html2canvas-csharp-proxy)\n* [html2canvas proxy in python (work any framework)](https://github.com/brcontainer/html2canvas-proxy-python)\n\n### Problem and Solution\n\nWhen adding an image that belongs to another domain in `\u003ccanvas\u003e` and after that try to export the canvas\nfor a new image, a security error occurs (actually occurs is a security lock), which can return the error:\n\n\u003e SecurityError: DOM Exception 18\n\u003e\n\u003e Error: An attempt was made to break through the security policy of the user agent.\n\n### Follow\n\nI ask you to follow me or \"star\" my repository to track updates\n\n### Usage\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003ctitle\u003ehtml2canvas asp (vbscript) proxy\u003c/title\u003e\n        \u003cscript src=\"html2canvas.js\"\u003e\u003c/script\u003e\n        \u003cscript\u003e\n        //\u003c![CDATA[\n        (function() {\n            window.onload = function(){\n                html2canvas(document.body, {\n                    \"logging\": true, //Enable log (use Web Console for get Errors and Warings)\n                    \"proxy\":\"html2canvasproxy.asp\",\n                    \"onrendered\": function(canvas) {\n                        var img = new Image();\n                        img.onload = function() {\n                            document.body.appendChild(img);\n                        };\n                        img.error = function() {\n                            if(window.console.log) {\n                                window.console.log(\"Not loaded image from canvas.toDataURL\");\n                            } else {\n                                alert(\"Not loaded image from canvas.toDataURL\");\n                            }\n                        };\n                        img.src = canvas.toDataURL(\"image/png\");\n                    }\n                });\n            };\n        })();\n        //]]\u003e\n        \u003c/script\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n        \u003cp\u003e\n            \u003cimg alt=\"google maps static\" src=\"http://maps.googleapis.com/maps/api/staticmap?center=40.714728,-73.998672\u0026amp;zoom=12\u0026amp;size=800x600\u0026amp;maptype=roadmap\u0026amp;sensor=false\"\u003e\n        \u003c/p\u003e\n        \u003cp\u003e\n            \u003cimg alt=\"facebook image redirect\" src=\"https://graph.facebook.com/1415773021975267/picture\"\u003e\n        \u003c/p\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n#### Using Web Console\n\nIf you have any problems with the script recommend to analyze the log using the Web Console from your browser:\n* Firefox: https://developer.mozilla.org/en-US/docs/Tools/Browser_Console\n* Chrome: https://developers.google.com/chrome-developer-tools/docs/console\n* InternetExplorer: http://msdn.microsoft.com/en-us/library/gg589530%28v=vs.85%29.aspx\n\nGet NetWork results:\n* Firefox: https://hacks.mozilla.org/2013/05/firefox-developer-tool-features-for-firefox-23/\n* Chrome: https://developers.google.com/chrome-developer-tools/docs/network\n* InternetExplorer: http://msdn.microsoft.com/en-us/library/gg130952%28v=vs.85%29.aspx\n\nAn alternative is to diagnose problems accessing the link directly:\n\n`http://[DOMAIN]/[PATH]/html2canvasproxy.php?url=http%3A%2F%2Fmaps.googleapis.com%2Fmaps%2Fapi%2Fstaticmap%3Fcenter%3D40.714728%2C-73.998672%26zoom%3D12%26size%3D800x600%26maptype%3Droadmap%26sensor%3Dfalse%261\u0026callback=html2canvas_0`\n\nReplace `[DOMAIN]` by your domain (eg. 127.0.0.1) and replace `[PATH]` by your project folder (eg. project-1/test), something like:\n\n`http://localhost/project-1/test/html2canvasproxy.php?url=http%3A%2F%2Fmaps.googleapis.com%2Fmaps%2Fapi%2Fstaticmap%3Fcenter%3D40.714728%2C-73.998672%26zoom%3D12%26size%3D800x600%26maptype%3Droadmap%26sensor%3Dfalse%261\u0026callback=html2canvas_0`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrcontainer%2Fhtml2canvas-asp-vbscript-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrcontainer%2Fhtml2canvas-asp-vbscript-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrcontainer%2Fhtml2canvas-asp-vbscript-proxy/lists"}