titaniumnetwork-dev / Ultraviolet

A highly sophisticated proxy used for evading internet censorship or accessing websites in a controlled sandbox using the power of service-workers. Works by intercepting HTTP requests with a service worker script that follows the TompHTTP specifications.
https://docs.titaniumnetwork.org/proxies/ultraviolet
GNU Affero General Public License v3.0
469 stars 3.77k forks source link

iframes of Ultraviolet don't work #42

Closed super-15 closed 11 months ago

super-15 commented 1 year ago

Issue tracker is ONLY used for reporting bugs. New features should be discussed on our Discord server.

Iframes dont work with Ultraviolet, it says "your browser doesnt support service workers" after clicking "register service workers" in an embed.

Expected Behavior

You should be able to click "register service worker" and see the website through a proxy

Current Behavior

When clicking "register service worker" it says "your browser doesnt support service workers"

Possible Solution

The Ultraviolet code could be modified to detect iframes or embedded content and handle service worker registration differently in those cases. This could involve creating a separate registration process for embedded content or modifying the existing registration process to work within iframes.

Steps to Reproduce

1.Visit a website with the proxy 2.Copy your URL (eg. https://ultraviolet-username.koyeb.app/uv/service/hvtrs8%2F-1t1%2Clml-) 3.Make an iframe on your website with that URL (