From 1514d6987d819d6132d22f7299e4a5dbd1206c2f Mon Sep 17 00:00:00 2001 From: JohannesDoberer Date: Fri, 11 Oct 2024 13:58:00 +0200 Subject: [PATCH] cors fix --- container/public/dist/custom-elements.json | 182 -------------------- container/src/services/container.service.ts | 2 +- 2 files changed, 1 insertion(+), 183 deletions(-) diff --git a/container/public/dist/custom-elements.json b/container/public/dist/custom-elements.json index ffdc4077b7..8b1c6dce14 100644 --- a/container/public/dist/custom-elements.json +++ b/container/public/dist/custom-elements.json @@ -441,188 +441,6 @@ "type": { "text": "Event" } - }, - { - "name": "custom", - "description": "A message emitted from the Microfrontend when a custom message is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.get-context", - "description": "A message emitted from the Microfrontend when the context data is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.init", - "description": "A message sent to the Microfrontend from parent with the context upon init.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.init.ok", - "description": "A message sent from the Microfrontend when the context data has been received properly.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.navigation.open", - "description": "A message emitted from the Microfrontend when a navigation request is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.ux.alert.show", - "description": "A message emitted from the Microfrontend when a request to show an alert is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.ux.alert.hide", - "description": "A message sent to the Microfrontend to notify closing of a particular alert.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.init.ok", - "description": "A message emitted from the Microfrontend when it is first initialized.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.addSearchParams", - "description": "A message emitted from the Microfrontend to request adding search parameters to the URL.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.addNodeParams", - "description": "A message emitted from the Microfrontend to request adding node parameters to the URL.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.ux.confirmationModal.show", - "description": "A message emitted from the Microfrontend when a request to show a confirmation modal is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.show-loading-indicator", - "description": "A message emitted from the Microfrontend when a request to show loading indicator is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.hide-loading-indicator", - "description": "A message emitted from the Microfrontend when a request to hide the loading indicator is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.ux.set-current-locale", - "description": "A message emitted from the Microfrontend when a request to set the current locale is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "storage", - "description": "A message emitted from the Microfrontend when a request to modify the local storage is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi-runtime-error-handling", - "description": "A message emitted from the Microfrontend when a request to handle an error during runtime is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.setAnchor", - "description": "A message emitted from the Microfrontend when a request to set the anchor of the URL is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.third-party-cookie", - "description": "A message emitted from the Microfrontend when a request to set third-party cookies is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.navigation.back", - "description": "A message emitted from the Microfrontend when a request to navigate back is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.navigation.currentRoute", - "description": "A message emitted from the Microfrontend when a request to receive the current app route is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.navigate", - "description": "A message sent to the Microfrontend with the payload being the context sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.navigate.ok", - "description": "A message emitted from the Microfrontend to report that the navigation is completed.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.navigation.updateModalDataPath", - "description": "A message emitted from the Microfrontend when a request to update the modal path parameters is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.navigation.pathExists", - "description": "A message emitted from the Microfrontend when a request to check the validity of a path is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.set-page-dirty", - "description": "A message emitted from the Microfrontend when a request to set the 'dirty status' is sent.", - "type": { - "text": "LuigiInternalMessageID" - } - }, - { - "name": "luigi.auth.tokenIssued", - "description": "A message emitted from the Microfrontend when a request to set the 'token auth' is sent.", - "type": { - "text": "LuigiInternalMessageID" - } } ], "attributes": [ diff --git a/container/src/services/container.service.ts b/container/src/services/container.service.ts index ac67dbcc20..dc953efb1b 100644 --- a/container/src/services/container.service.ts +++ b/container/src/services/container.service.ts @@ -117,7 +117,7 @@ export class ContainerService { }, authData: targetCnt.authData || {} }, - target.origin + event.origin ); break; case LuigiInternalMessageID.NAVIGATION_REQUEST: