0 Replies Latest reply on Oct 12, 2018 4:10 PM by manish.kumar35@amexgbt.com

    Embedding logged-in jive user attribute in an HTML widget

    manish.kumar35@amexgbt.com Novice



      I want to display the logged in jive user details on my HTML widget. This HTML widget is rendered as iFrame and have different src url than its parent main HTML page (url in browser https://XXX.jiveon.com). I came to know this when I inspected an element inside my HTML widget.


      When I try to access jive username with parent._jive_current_user.username I get below error:


      VM21260:33 Uncaught DOMException: Blocked a frame with origin "https://app-XXX.jiveon.com" from accessing a cross-origin frame.

          at optionChanged (eval at <anonymous> (https://app-XXX.jiveon.com/...), <anonymous>:33:72)

          at HTMLSelectElement.onchange (https://app-XXX.jiveon.com/...)


      Does anyone know how to solve for this issue?


      Thanks for your help in advance