Page 2 of 2

Re: Enable X-Frame-Options

Posted: Fri Oct 27, 2017 8:50 am
by SETR
The Xframe does not work. I don't think the issue is in JIRA because even "kyang" tried and he had the same issue. For some reason Nagios does not work inside a frame. I have attached a screenshot for your reference.

Re: Enable X-Frame-Options

Posted: Fri Oct 27, 2017 10:04 am
by npolovenko
Hello, @SETR. We managed to successfully test the iframe with @kyang. We tested it on local network and used a simple html boilerplate. Make sure to go to Admin/System settings/ Security and add the ip to Allowed hosts, check the disable restrictions box as well--->Update settings. Make sure to change the iframe IP and token. Admin/Manage Components/Backend API URL component/Edit select Nagiosadmin -->copy the token from there.

Troubleshooting integration with third-party services is harder because we don't know exactly what code they're using to insert the frame.

Create a test html document on your computer with the source code below. See if it works.

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<html>
    <head>
        <rel="stylesheet" type="text/css" href="css/main.css" />
        <meta http-equiv="content-type" content="text/php; charset=utf-8" />

        <title>Site Template - Welcome!</title>
    </head>

    <body>
       


<iframe src="http://192.168.4.172/nagiosxi/includes/components/xicore/status.php?show=services&username=nagiosadmin&ticket=NWV60eth&req_frame_access=192.168.3.46"></iframe>


    <footer>
       
    </footer>
</html>

Re: Enable X-Frame-Options

Posted: Mon Oct 30, 2017 10:36 am
by SETR
I will try this out and let you know. Thanks for looking into this issue.

Re: Enable X-Frame-Options

Posted: Mon Oct 30, 2017 11:14 am
by npolovenko
@SETR, Sounds good, keep us updated!

Re: Enable X-Frame-Options

Posted: Mon Nov 06, 2017 12:27 pm
by SETR
The test code you gave works perfectly but looks like the issue is with the JIRA dashboard. We will be working with the JIRA team to resolve this. Thank you all for the support!!

Re: Enable X-Frame-Options

Posted: Mon Nov 06, 2017 12:43 pm
by tmcdonald
Glad to hear it's moving along at least. Are we okay to lock this up on our end?

Re: Enable X-Frame-Options

Posted: Mon Nov 06, 2017 1:45 pm
by SETR
Yes, Please.

Re: Enable X-Frame-Options

Posted: Mon Nov 06, 2017 1:52 pm
by kyang
Sounds good! Closing this topic!

Thank you for using the Nagios Support Forum!