Details
-
Improvement
-
Resolution: Unresolved
-
Neutral
-
None
-
1.4.1
-
None
-
None
Description
As described at this documentation we recommend to externally host your SPA.
For a smooth development experience and flexible deployment, we recommend you to host your SPA externally to Magnolia.
The problem occurs if that externally hosted SPA is located on a different domain.
Reproduce
- Host Magnolia on domain1 (https://www.domain1.com) and the SPA on domain2 (https://www.domain2.com)
- Set the "Third-party cookies" behaviour to "Block third-party cookies". See also Third party cookie phase out
Expected
I'm able to edit the page without any problems.
Actual
The following error appears:
SEVERE: Exception caught: (SecurityError) : Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document. com.google.web.bindery.event.shared.UmbrellaException: Exception caught: (SecurityError) : Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.
The sessionStorage is not allowed to be accessed. This interferes with the greenbar-edit-areas. These are non clickable after this error occurs.
Workaround
You have to allow more liberal cookie settings in the browser to make it work correctly.
Checklists
Acceptance criteria