cityofaustin/janis

Using cookies breaks live preview

benweatherman opened this issue · 1 comments

The way that we're reading/saving cookies for remembering language selection causes security errors for live preview because the cookie is being set on the janis domain instead of the joplin domain (i.e. it'll be treated as a 3rd-party cookie).

One option is to wrap cookie access with exception handling since we currently don't care about users being able to set their language in the live preview.

This was actually much simpler, just had to remove the sandboxing for the preview iframe