Page 1 of 1

How to make the QNAP admin interface embeddable in a frame?

Posted: Sat Apr 03, 2021 6:50 am
by Dondochaka
I have a webapp (only on my LAN) running at appname.local. I want to embed my QNAP admin web app in a frame (which I have at qnap.local on my LAN). By default this is not supported, as the X-Frame-Options: header value is SAMEORIGIN.

In Control Panel -> Web Server there is an option "Do not allow Web Server embedding in iFrames." I have disabled it but nothing has changed and embedding still fails. Is web server the admin interface, or something else? How should I accomplish this?

Re: How to make the QNAP admin interface embeddable in a frame?

Posted: Tue Apr 06, 2021 2:11 am
by jaysona
The control panel is for the (cripled) Apache web server that runs on port 80.

The Admin webpage that runs on 8080 is run by a different web-server. All of the files are located in /home/httpd/ and is controlled by all the crap in /etc/init.d/thttpd.sh

Go spelunking and have fun.

Re: How to make the QNAP admin interface embeddable in a frame?

Posted: Fri Apr 23, 2021 4:19 am
by Mousetick
qtsiframe.png

Re: How to make the QNAP admin interface embeddable in a frame?

Posted: Fri Apr 23, 2021 4:36 am
by jaysona
853proControlPanel.png

Re: How to make the QNAP admin interface embeddable in a frame?

Posted: Fri Apr 23, 2021 4:48 am
by syncthing
@jaysona: which QTS version do you use; mine with 4.5.2 looks like mouseticks picture

Re: How to make the QNAP admin interface embeddable in a frame?

Posted: Fri Apr 23, 2021 5:07 am
by jaysona
QTS 45.3.6.1446 - for whatever reason(s), QNAP does not like to make new firmware available to some NAS models, even thought those models technically can use later firmware versions.
853proControlPanel-1.png