Company
Date Published
Author
John Pham Ninja 10x Engineer
Word count
695
Language
-
Hacker News points
None

Summary

Highlight's session comment feature includes spatial properties that allow users to pinpoint specific screen locations, enhancing clarity in communication. However, the process of capturing screenshots using html2canvas faces challenges with CORS restrictions when external resources are involved, resulting in incomplete images. To address this, a reverse proxy is employed, using Cloudflare Workers to bypass CORS by fetching resources through a Highlight proxy, ensuring resources appear to be from the same origin to the browser. While exploring alternative solutions, such as using a headless browser, the current approach with a reverse proxy offers a balance of effectiveness and simplicity, though it may evolve over time as technologies and needs change.