cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
414
Views
0
Helpful
0
Replies

UserInterface.WebView.Display - Open Insecure HTTPs URL help!

Joel Ulrich
Level 1
Level 1
Hello all, I am trying to use one of my webex rooms to open an QSYS DSP Control Page (UCI) which sits on the local network. 
 
This is my code to capture when the button is pressed - pops the web page on screen but gives a page can't be loaded error. (if i chage to something like https://google.com works OK)

const qsysUCIurl = 'https://10.6.85.80/api-uci/v0/ucis/abcd.....'
 
  if (panelEvent.PanelId == 'qsysControl') {
    console.log("QSYS BUTTON PRESSED:",qsysUCIurl);
    xapi.Command.UserInterface.WebView.Display(
    { Mode'Modal',  
      Title'Room Controls',
      AllowInsecureHttpstrue,
      //Target: 'Controller', 
      Url: qsysUCIurl,
    });
    } 
})

I have added the following Allow Expression: xCommand HttpClient Allow Hostname Add Expression: '10\.6\.85\.\d{2,3}'
 
Each time I press my button I receive the following error 
Unhandled promise rejection {"code":1,"message":"Insecure HTTPS is set to true, but the host is not within the defined hostlist."}
 
0 Replies 0