-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bookmarklet doesn't work on docker #186
Comments
Update :
|
yeah its been a long time since I tried the bookmarklet... I don't think adding the CORS middleware to starlette will fix that issue. I think adding that middleware would just allow you to load resources from other domains when on the youtube-dl ui. You might just need to use one of the browser extensions that let you toggle CORS on a page. |
I'm happily using the Bookmarklet in Firefox (135.0) pointing to a docker container but I had to resolve two CORS issues and make a minor change to the javascript where I had to make a change to an Asynchronous call:
I use Nginx Proxy Manager (as reverse proxy) and the first CORS issue was that modern browsers don't like HTTP unencrypted traffic so I had to get an SSL cert (LetsEncrypt) and stop using just the IP address to my docker host and container port. Then the second CORS issue revealed itself, that I believe is related to this issue. I was able to resolve this CORS issue (Cross Origin Request) by adding a custom HEADER tag to the reverse proxy traffic request.
(Of course change the <forward-ip> and <port> values to your docker IP and container port) This should only be considered a workaround. I do believe this HEADER tag (add_header Access-Control-Allow-Origin "*";) can be added to the source codes HEADER definition. And at the very least offered as a Docker environment variable to toggle on or off. I hope someone finds this helpful. My cloned version is 2.0.0. |
the bookmarklet produced http request does't go past the browser

i think it needs ssl support
now it uses vpn and im not sure how to configure it behind my proxy
PS: everything else works as expected (UI & Download)
The text was updated successfully, but these errors were encountered: