pyload / pyload

The free and open-source Download Manager written in pure Python
https://pyload.net
Other
3.23k stars 702 forks source link

Option to allow X-Frame-Options for iframe in Organizr #4336

Open aronjanosch opened 11 months ago

aronjanosch commented 11 months ago

Feature description

Add an option to pyload, that we can disable the X-Frame-Options header. This would enable pyload to be shown as an iframe in apps like Organizr: https://github.com/causefx/Organizr/

Sn00zEZA commented 6 months ago

Is there a workaround for this? Edit: Changing the X-Frame-Options to 'SAMEORIGIN' still does not work for me, seem like "Content-Security-Policy: frame-ancestors" needs to be added so we can include the site where the iframe is embedded in.

andree182 commented 6 months ago

The workaround is commenting out https://github.com/pyload/pyload/blob/4159a1191ec4fe6d927e57a9c4bb8f54e16c381d/src/pyload/webui/app/__init__.py#L69

Sn00zEZA commented 5 months ago

The workaround is commenting out

https://github.com/pyload/pyload/blob/4159a1191ec4fe6d927e57a9c4bb8f54e16c381d/src/pyload/webui/app/__init__.py#L69

Awesome got it working, thank you. Hope and option to disable x_frame_options can be implemented like with SABnzbd under special options.