-
Notifications
You must be signed in to change notification settings - Fork 9
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
Platform fails to start if defining a message origin for an application that provides activators #197
Comments
danielwiehl
added a commit
that referenced
this issue
Nov 23, 2022
…rigin as allowed origins Previously, configuring a secondary origin replaced the application's origin as allowed origin. This was not correct. Instead, the secondary origin should be an additional allowed origin. This feature was introduced for integrating microfrontends into a rich client to bridge messages between clients and host across browser boundaries. However, by replacing the origin, activators could no longer connect to the host. closes #197 BREAKING CHANGE: Property for configuring a custom message origin has been renamed from `messageOrigin` to `secondaryOrigin`. This breaking change only refers to the host. To migrate, configure the additional allowed origin via the `secondaryOrigin` property instead of `messageOrigin`, as following: ```ts await MicrofrontendPlatform.startHost({ applications: [ {symbolicName: 'client', manifestUrl: 'https://app/manifest.json', secondaryOrigin: 'https://secondary'}, ], }); ```
danielwiehl
added a commit
that referenced
this issue
Nov 23, 2022
…rigin as allowed origins Previously, configuring a secondary origin replaced the application's origin as allowed origin. This was not correct. Instead, the secondary origin should be an additional allowed origin. This feature was introduced for integrating microfrontends into a rich client to bridge messages between clients and host across browser boundaries. However, by replacing the origin, activators could no longer connect to the host. closes #197 BREAKING CHANGE: Property for configuring a custom message origin has been renamed from `messageOrigin` to `secondaryOrigin`. This breaking change only refers to the host. To migrate, configure the additional allowed origin via the `secondaryOrigin` property instead of `messageOrigin`, as following: ```ts await MicrofrontendPlatform.startHost({ applications: [ {symbolicName: 'client', manifestUrl: 'https://app/manifest.json', secondaryOrigin: 'https://secondary'}, ], }); ```
Merged
17 tasks
danielwiehl
added a commit
that referenced
this issue
Nov 23, 2022
…rigin as allowed origins Previously, configuring a secondary origin replaced the application's origin as allowed origin. This was not correct. Instead, the secondary origin should be an additionally allowed origin. This feature was introduced for integrating microfrontends into a rich client to bridge messages between clients and host across browser boundaries. However, by replacing the origin, activators could no longer connect to the host. closes #197 BREAKING CHANGE: Property for configuring a custom message origin has been renamed from `messageOrigin` to `secondaryOrigin`. This breaking change only refers to the host. To migrate, configure the additional allowed origin via the `secondaryOrigin` property instead of `messageOrigin`, as following: ```ts await MicrofrontendPlatform.startHost({ applications: [ {symbolicName: 'client', manifestUrl: 'https://app/manifest.json', secondaryOrigin: 'https://secondary'}, ], }); ```
danielwiehl
added a commit
that referenced
this issue
Nov 24, 2022
Previously, configuring a secondary origin replaced the application's origin as allowed origin. This was not correct. Instead, the secondary origin should be an additionally allowed origin. This feature was introduced for integrating microfrontends into a rich client to bridge messages between clients and host across browser boundaries. However, by replacing the origin, activators could no longer connect to the host. closes #197 BREAKING CHANGE: Property for configuring a secondary origin has been renamed from `messageOrigin` to `secondaryOrigin`. This breaking change only refers to the host. To migrate, configure the additional allowed origin via the `secondaryOrigin` property instead of `messageOrigin`, as following: ```ts await MicrofrontendPlatform.startHost({ applications: [ {symbolicName: 'client', manifestUrl: 'https://app/manifest.json', secondaryOrigin: 'https://secondary'}, ], }); ```
danielwiehl
added a commit
that referenced
this issue
Nov 24, 2022
Previously, configuring a secondary origin replaced the application's origin as allowed origin. This was not correct. Instead, the secondary origin should be an additionally allowed origin. This feature was introduced for integrating microfrontends into a rich client to bridge messages between clients and host across browser boundaries. However, by replacing the origin, activators could no longer connect to the host. closes #197 BREAKING CHANGE: Property for configuring a secondary origin has been renamed from `messageOrigin` to `secondaryOrigin`. This breaking change only refers to the host. To migrate, configure the additional allowed origin via the `secondaryOrigin` property instead of `messageOrigin`, as following: ```ts await MicrofrontendPlatform.startHost({ applications: [ {symbolicName: 'client', manifestUrl: 'https://app/manifest.json', secondaryOrigin: 'https://secondary'}, ], }); ```
danielwiehl
added a commit
that referenced
this issue
Nov 24, 2022
Previously, configuring a secondary origin replaced the application's origin as allowed origin. This was not correct. Instead, the secondary origin should be an additionally allowed origin. This feature was introduced for integrating microfrontends into a rich client to bridge messages between clients and host across browser boundaries. However, by replacing the origin, activators could no longer connect to the host. closes #197 BREAKING CHANGE: Property for configuring a secondary origin has been renamed from `messageOrigin` to `secondaryOrigin`. This breaking change only refers to the host. To migrate, configure the additional allowed origin via the `secondaryOrigin` property instead of `messageOrigin`, as following: ```ts await MicrofrontendPlatform.startHost({ applications: [ {symbolicName: 'client', manifestUrl: 'https://app/manifest.json', secondaryOrigin: 'https://secondary'}, ], }); ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The message origin defines where a message from an application must originate to be accepted and delivered by the host. Specifying a different origin may be necessary, for example, if integrating microfrontends into a rich client. The rich client then intercepts messages from applications and "forwards" them to the (remote) host. Thus, such messages originate from the host rather than the application.
However, since activator microfrontends are embedded directly in the host and communication between the host and activator is not bridged, they still originate from the application and not the host, and thus will be rejected by the host.
Expected behavior
Messages from and to activators are not rejected.
Environment
Please complete the following information:
SCION Microfrontend Platform version:
1.0.0-rc.3
The text was updated successfully, but these errors were encountered: