Ad Widget

Collapse

URL Widget

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Djelly
    Junior Member
    • Oct 2020
    • 7

    #1

    URL Widget

    Hey,

    I'm trying to get a URL widget to work on a MS SQL report server page.
    But all I get is:

    Click image for larger version

Name:	1.png
Views:	2776
Size:	28.7 KB
ID:	418010
    (this image is not from my set-up, I use firefox as a browser. The error message is the same)

    When I open the page with the same URL in another tab, it opens correctly.
    Does the zabbix URL widget use some kind of other browsing method other then the browser itself, can I change something so that the widget can use active scripting?
    I read that this can be fixed by adding the website to trusted website, but that is for a browser and not a widget in the browser.


    Ubuntu 20.04.1 LTS
    Zabbix version 5.2.3
    Attached Files
  • Djelly
    Junior Member
    • Oct 2020
    • 7

    #2
    The solution was found in the following topic



    Administration > General > Other (from the dropdown menu) > Untick Use iframe sandboxing

    Comment


    • patrickdenis
      patrickdenis commented
      Editing a comment
      i have the same problembut i dont have this option on 5.0
  • Djelly
    Junior Member
    • Oct 2020
    • 7

    #3
    It looks like this option was added in 5.0.2
    https://www.zabbix.com/documentation.../whatsnew502?s[]=iframe&s[]=sandboxing
    maybe you can try find the "defines.inc.php" file, according to the documentation it is possible to change the setting in that file.

    Comment

    • Zulauf
      Junior Member
      • Feb 2021
      • 1

      #4
      I'm not really a programmer yet I have installed both this module and the WEB module with no success to show the clickable link in the tree view.

      Does anyone know where there are examples of the code?

      Should I be setting up the custom field or script in a certain way?



      myccpay.com
      Last edited by Zulauf; 11-02-2021, 10:59.

      Comment


      • patrickdenis
        patrickdenis commented
        Editing a comment
        If you are using latest version 5.2 + you need to go into administration/General then click top left menu GUI then choose Other. then Uncheck Sandboxing option or set the available options.
    • patrickdenis
      Junior Member
      • May 2020
      • 18

      #5
      So i did it

      you can disable it in version below 5.0.2 like this :

      /**
      * The sandbox attribute enables an extra set of restrictions for the content in the iframe. Default is set to empty
      * string, which means all restrictions are applied. To disable, set to FALSE. To set a specific set of restrictions,
      * write a custom string.
      * https://www.w3.org/TR/2010/WD-html5-...iframe-sandbox
      */
      define('ZBX_IFRAME_SANDBOX', 'ALLOW-SAME-ORIGIN ALLOW-SCRIPTS SEAMLESS');

      // HTTP headers
      /*
      * Value of HTTP X-Frame-options header.
      *
      * Supported options:
      * - SAMEORIGIN (string) - compatible with rfc7034.
      * - DENY (string) - compatible with rfc7034.
      * - a list (string) of comma-separated hostnames. If hostname is not between allowed, the SAMEORIGIN option is used.
      * - null - disable X-Frame-options header.
      */
      define('X_FRAME_OPTIONS', 'null');

      Comment

      Working...