-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SecurityError: Blocked a frame with origin, when initializing MultiWindowService on a popout window #62
Comments
Please give more details on your setup.
|
Chrome Version 81.0.4044.138. <iframe id="collabviewerframe2" name="collabviewerframe2" class="collabviewer" src="http://localhost:4200/assets/collabviewer/viewer2.html?&zoom=0.5&documentviewurl=https%3A%2F%2Fapi.data.com%2Fapi%2FFile%2FGetFileNativeStream%3Ft%30%26v%3Dundefined&document=" frameborder="0" `scrolling="no"></iframe> On the source url on this iframe I've query string for documentviewurl= https://api.data.com. Everytime I popout a window with this component on the layout I encounter that problem. |
Is your problem solved or is there something I need to do in order to fix this? |
No not yet. I think this problem occurred because the presence of iframe on the main window made the browser security to blocked the communication of the popout window with main window. So statement like rootWindow.__serviceConstructors.get(uniqueName) on the export function MultiWindowService cannot be made. I tried to use postMessage just to communicate with the main window then pass window.__services instance but now encountering error : ERROR TypeError: this.urlProvider.loadRequests$ is not a function |
Hi,
I'm currently using api host with different domain name but we have already set the server header to Access-Control-Allow-Origin: * allowing any request to bypass this issue. We tested it already and its working on all calls.
But it is still erroring out on MultiWindowService function on this particular statement :
const hasInstance = rootWindow.__services.has(uniqueName) when I popped out a window.
What seems to be the problem here?
Thanks,
Allan
The text was updated successfully, but these errors were encountered: