Jackett / Jackett

API Support for your favorite torrent trackers
GNU General Public License v2.0
12.32k stars 1.3k forks source link

Jackett not loading in iframe since 0.9.x #3440

Closed wtf911 closed 6 years ago

wtf911 commented 6 years ago

Please see the attached screenshot of what it tries to do and what happens. I can actively test and debug for any instructions given or info wanted. I'm using Muximux to host my "own homepage" with little tabs and things in iframes. It has always worked with Jackett in the past until the 0.9.x versions I believe. I used Chrome to inspect what it was doing which the screenshot shows.

https://imgur.com/a/nNzftcP

I don't have a login for Jackett, no admin password in the settings, it's only on my local network, so I'm not sure why it goes to that ?login url.

Thank you!

ghost commented 6 years ago

Does the same behavior happen when you access Jackett directly in the browser i.e. not through the iframe?

wtf911 commented 6 years ago

It loads fine when I load it directly. Either via localhost or the IP address. Only via the iframe from Muximux does it happen. But it used to work fine that way as well.

ghost commented 6 years ago

Will have a look later in the week

wtf911 commented 6 years ago

Thank you. I can share screen or whatever would help troubleshoot.

ghost commented 6 years ago

Have tried to reproduce with Muximux, but couldn't, worked nicely What address are you using in Muximux, I've tried with http://127.0.0.1:9117/UI/Dashboard Also can you retry in an incognito window?

wtf911 commented 6 years ago

I'm using: http://192.168.1.4:9117/UI/Dashboard

Jackett runs on one of my computers while I like Muximux to be viewable from everywhere on my local network. So rather than use 127.0.01 I use the specific IP address. I am able to access Jackett from any computer using 192.168.1.4 whereas no matter what it doesn't work in Muximux. I have tried it with an incognito window but no luck there. If you're not having any trouble it makes me wonder if something got botched when it upgraded and I need to fully remove it and install it from scratch. Your thoughts?

wtf911 commented 6 years ago

Maybe this will help. I enabled the extra logging and grabbed this from the log file which is at the exact moment I go to load my Jackett tab in Muximux.

When it does not work with Muximux: https://pastebin.com/raw/aD9EppeW

Working via direct address without Muximux: https://pastebin.com/raw/BWA0WmZN

I'm sure it will make more sense to you than it does to me.

Thank you for the help!

ghost commented 6 years ago

Thanks, its now obvious from the logs. I can now reproduce it. The key is the address in the address bar being different from what is set in Muximux. People try and use iframes as an exploit. Since v0.9 now has a cookie, I suspect that is the issue being cross domain, will have a look when I get a chance

wtf911 commented 6 years ago

Alright. Thank you for taking the time to check it out. Goes without saying, great program! :)

ghost commented 6 years ago

Can you test the latest release, might have to clear cache/use incognito

wtf911 commented 6 years ago

Hey that was fast. I just updated and tested. We're good to go. It will load for me now. Just worked as soon as I updated to the latest version and tried. Thank you for the help! As far as I'm concerned you went out of your way, it is appreciated.