vSphere

 View Only
  • 1.  Redirect from remote vSphere plugin to external site

    Posted Mar 15, 2024 04:54 PM

    We are developing a Remote vSphere plugin. In the plugin we need to redirect user to our own external Web site instead of vSphere Web Console. I tried to do it by calling fro our plugin's code:

    window.parent.location = "<our site url>";

    But I'm getting the following error: Refused to frame '<our site url>' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'

    Is it possible to do that somehow?



  • 2.  RE: Redirect from remote vSphere plugin to external site
    Best Answer

    Broadcom Employee
    Posted Mar 18, 2024 07:20 AM

    Hi,

     

    Due to security concerns, plugins are sandboxed in their own iframes and are not able to directly modify the parent window.

    You can open a new tab window by calling "window.open("")" with your URL.

     

    Best Regards,

    Denis