Including sisense.js with <script> tag

Comments

3 comments

  • Avatar
    Moti Granovsky

    Hi Brian,

    I'm not sure what index.html file you are referring to - the HTML page for your application I assume.

    Of course the Sisense.JS library can be consumed the standard way with a SCRIPT tag:

    <script type="text/javascript" src="http://localhost/js/sisense.js"></script>

    Please see the documentation for Sisense.JS where this example appears:

    https://developer.sisense.com/display/API2/SisenseJS

    0
    Comment actions Permalink
  • Avatar
    Yaniv Morgenstern

    Hi Moti - does it means that if I'm using a serverless application (REACT), my users will be able to login and get their widgets and now a white page?

    0
    Comment actions Permalink
  • Avatar
    Brian Wetzel

    sisense.js will cause a redirect if the sisense auth cookie does not exist when it is requested.  we have a single page app using react and SSO via JWT to sisense.  to avoid this redirection, we are dynamically loading sisense.js after we get the sisense auth cookie.  we do something similar to https://gitlab.com/SisenseJS/react-sample

    0
    Comment actions Permalink

Please sign in to leave a comment.