[MGNLFE-676] Externally Hosted SPA - Domain conflicts with third party cookies Created: 18/Oct/23  Updated: 18/Oct/23

Status: Open
Project: Magnolia Frontend Helpers
Component/s: None
Affects Version/s: 1.4.1
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Richard Gange Assignee: Unassigned
Resolution: Unresolved Votes: 6
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File screenshot-2.png    
Issue Links:
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 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

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.


Generated at Mon Feb 12 05:49:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.