-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow cross-origin communication with remote sites #31
Labels
Comments
danielwiehl
added a commit
that referenced
this issue
Nov 15, 2018
Communication is based on 'postMessage()' and 'onmessage' to safely communicate cross-origin. Breaking change: Removed output property to listen for URL changes because not allowed for cross-origin communication and internally using a timer to detect URL changes (as there is no change event emitted natively and `MutationObserver` is not applicable). Use `message` output property instead.
3 tasks
danielwiehl
added a commit
that referenced
this issue
Nov 15, 2018
Communication is based on 'postMessage()' and 'onmessage' to safely communicate cross-origin. Breaking change: Removed output property to listen for URL changes because not allowed for cross-origin communication and internally using a timer to detect URL changes (as there is no change event emitted natively and `MutationObserver` is not applicable). Use `message` output property instead.
ReToCode
pushed a commit
that referenced
this issue
Nov 15, 2018
Communication is based on 'postMessage()' and 'onmessage' to safely communicate cross-origin. Breaking change: Removed output property to listen for URL changes because not allowed for cross-origin communication and internally using a timer to detect URL changes (as there is no change event emitted natively and `MutationObserver` is not applicable). Use `message` output property instead.
danielwiehl
added a commit
that referenced
this issue
Dec 11, 2018
Communication is based on 'postMessage()' and 'onmessage' to safely communicate cross-origin. Closes #31 BREAKING CHANGE: Removed output property to listen for URL changes because not allowed for cross-origin communication and internally using a timer to detect URL changes (as there is no change event emitted natively and `MutationObserver` is not applicable). Use `message` output property instead.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current version of workbench allows communication with remote sites via URL. The host application can change the URL or listen for URL changes. However, listening for URL changes is not allowed for a cross-origin remote site.
Instead, communication should be based on
postMessage
andonmessage
to safely communicate cross-origin.Also, listening for URL changes should be removed (breaking change). This is mainly because it internally uses a timer to detect URL changes as there is no change event emitted natively and
MutationObserver
is not applicable.This feature will be used for the upcoming micro frontend integration to communicate with remote applications.
The text was updated successfully, but these errors were encountered: