Understand Same-Origin and CORS limitations
masterAll resources required for drawing (the HTML page, CSS, images, fonts, and JS) must be from the same origin as the current page.
If you need to load resources from a different domain, you must use CORS (Cross-Origin Resource Sharing). For example, drawURL() can only load pages from the same domain as the current page unless CORS is properly configured on the target server.