I saw an approach that runs the Arti Tor client in WebAssembly and connects through Snowflake to read cross-origin responses. Does that avoid needing a CORS proxy, and what are the trade-offs?
Can Tor in WebAssembly get around browser CORS limits?
Answers
It can avoid the usual CORS check on a direct browser fetch because the request travels through a Tor connection rather than being made as a normal cross-origin fetch to the destination. The response is then read by the client running in WebAssembly.
That doesn't mean CORS has been disabled or that every site will work. It's a different route for the traffic, using Snowflake to reach the Tor network.
Reply to this answer
You can avoid operating your own proxy, but the traffic still relies on other people's infrastructure, including Tor relays and an exit node. In that sense it's still a proxy-like setup, just not a server you run and pay for yourself.
Reply to this answer
The speed is the big catch. Bootstrapping Tor, connecting through Snowflake, and routing through a Tor circuit add a lot of overhead compared with a direct request. The demonstration was described as very slow, though there isn't a specific timing here to use as a benchmark.
Neat experiment, but a conventional proxy is likely a more practical choice if the application needs responsive API calls.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions