Transmission GUI in iframe

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
Doyley
Posts: 2
Joined: Mon Feb 14, 2022 5:28 pm

Transmission GUI in iframe

Post by Doyley »

Hello all,

I've created a very simple webpage which allows my wife to add torrents etc. On the page I've included the Transmission GUI in an iframe so that she can see the progress of downloads.

In the Transmission settings I have whitelisted our home IP, which works great when she's at home. But if she's out and about on her mobile then the iframe shows a 403 Forbidden error.

Is it possible to configure the GUI so that it only works when it is loaded in an iframe from my webpage, without any IP restrictions so she can use it when she's out?

I have been tinkering with the rpc-host-whitelist setting but that doesn't seem to help. I'll include that section of my settings below.

"rpc-authentication-required": false,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-host-whitelist": "torrent.mywebpage.org",
"rpc-host-whitelist-enabled": true,
"rpc-password": "<password>",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "transmission",
"rpc-whitelist": "<my home IP>",
"rpc-whitelist-enabled": true,

Thank you very much in advance.
killemov
Posts: 535
Joined: Sat Jul 31, 2010 5:04 pm

Re: Transmission GUI in iframe

Post by killemov »

Doyley wrote: Mon Feb 14, 2022 5:37 pm ... without any IP restrictions ...
This implies

Code: Select all

    "rpc-whitelist-enabled": false
Doyley wrote: Mon Feb 14, 2022 5:37 pm so that it only works when it is loaded in an iframe from my webpage
This implies changing the Transmission code itself checking if it was called from your webpage. Check window.top.href
Post Reply