VMware {code} Community
Maxim-Online
Contributor
Contributor
Jump to solution

Redirect from remote vSphere plugin to external site

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?

0 Kudos
1 Solution

Accepted Solutions
Denis_Chorbadzh
VMware Employee
VMware Employee
Jump to solution

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

View solution in original post

1 Reply
Denis_Chorbadzh
VMware Employee
VMware Employee
Jump to solution

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