ECMS-6148: Cannot load Common Selector when portal is rendered inside an...

... iframe

Fix description:
- Get hostname by src property of iframe if portal is rendered in an iframe or location in normal case