stefanpejcic / OpenPanel

A highly customizable web hosting control panel built with Docker 🐳
https://openpanel.com
216 stars 33 forks source link

WebTerminal iframe not shown when force domain is set on OpenPanel #193

Closed stefanpejcic closed 1 month ago

stefanpejcic commented 1 month ago

OpenPanel version(s) affected

0.2.9

What OS are you using?

Ubuntu

Description

Content-Security-Policy: The page’s settings blocked the loading of a resource (frame-src) at http://172.19.0.2:32769/ because it violates the following directive: “default-src 'self' 'unsafe-inline' 'unsafe-eval' data: http://*.openpanel.com https://*.openpanel.com https://openpanel.com/ http://*.openpanel.co https://*.openpanel.co https://openpanel.co/ https://code.jquery.com/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://fonts.gstatic.com/ https://www.google.com/ https://*.gstatic.com/ http://*.gstatic.com https://www.gravatar.com/ https://api.country.is/ https://api.wordpress.org/ http://api.wordpress.org/ https://api.github.com/ https://cdnjs.cloudflare.com/

How to reproduce

set force_name and open WebTerminal

Possible Solution

No response

Additional Context

No response

stefanpejcic commented 1 month ago

resolved in 0.3.0

if force_domain and force_https are used then we will open terminal in new tab, else open as iframe