Hmmm, I already sent you all my code, not sure why it didn't show up on
the list. I'll send it directly to you...
On 11/10/2017 04:22 PM, Peter wrote:
I can probably send you a sample. Got any code you can share? Using
any particular JS framework?
On 11/10/2017 01:01 PM, Mark Reynolds wrote:
> Hi Peter,
> Thanks for responding! So basically what I'm trying to do is load my
> own navigation bar (right now its just a row of buttons which is fine),
> clicking on "Servers" should load the servers.html page into the
> iframe(mainFrame). That's what I want to happen at least :-) I
> actually copied the current design from cockpit's own systemd Services
> Ultimately I just want a navigation bar, and then when I click on the
> item it fills in the body with a new html page/content. I will be
> heavily using JS to build trees, and other fun stuff for each "area':
> Servers, Replication, Backends, etc. So I need to figure out how to
> Thanks again!!
> On 11/10/2017 03:45 PM, Peter wrote:
>> If you show me some code I could probably help better with debugging,
>> but chances are it is something like needing to setup onclicks in a
>> onload function rather than adding it right into the html.
>> If you want to disable CSP while developing you can add something like
>> this to your manifest.
>> Generally for anything you ship, you'll want to keep to the default
>> CSP rules.
>> On 11/10/2017 11:51 AM, Mark Reynolds wrote:
>>> I'm evaluating cockpit to be a potential UI replacement for our
>>> server (389 directory server). I am also not an experienced web
>>> developer, but regardless I'm going to be writing our new UI.
>>> I've created a sample package(manifest.json file, html files, etc)
>>> and I
>>> put it all under ~/.local/share/cockpit/test/
>>> I see my new menu item, and it loads my html page. But I can not
>>> get my
>>> Content Security Policy: The page’s settings blocked the loading of a
>>> resource at self (“default-src http://localhost:9090
). Source: onclick attribute on BUTTON element.
>>> the html page, etc. None it works and it's the CSP that
>>> to be
>>> blocking me every time.
>>> cockpit-devel mailing list -- cockpit-devel(a)lists.fedorahosted.org
>>> To unsubscribe send an email to
>> cockpit-devel mailing list -- cockpit-devel(a)lists.fedorahosted.org
>> To unsubscribe send an email to
cockpit-devel mailing list -- cockpit-devel(a)lists.fedorahosted.org
To unsubscribe send an email to