Skip to content

External webui inside cockpit #16868

Answered by martinpitt
hojnikb asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can do that. In your page, embed the external site in an iframe, such as this:

<iframe width="700" height="500" title="external app" src="https://yourdomain.example.com/"></iframe>

In order for browsers to actually allow that, you also need to extend the Content-Security-Policy in your manifest.json:

"content-security-policy": "default-src 'self' https://yourdomain.example.com"

I just tested that with modifying cockpit's pinger example as above:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by martinpitt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #16866 on January 24, 2022 09:45.