AndyButland / UmbracoPersonalisationGroups

Package for personalisation of content with Umbraco.
MIT License
38 stars 18 forks source link

Server cannot modify cookies after HTTP headers have been sent | Umbraco Macro #25

Closed bidyashish closed 2 years ago

bidyashish commented 3 years ago

Hello,

We have recently added Umbraco Personalization group in Umbraco Version 7.15.4. The issue is when using with Umbraco Macro in TinyMCE RTE. During Ajax call there is error "Server cannot modify cookies after HTTP headers have been sent" image

AndyButland commented 3 years ago

Hi - I've tried to replicate this but am not immediately able. Could you share some details about your macro please - i.e. how it's configured in the back-office, and the contents of the related partial view macro (or other) file? Thanks.

AndyButland commented 2 years ago

Closing as inactive.

gregwoodsit commented 1 year ago

Hi, Andy. We still have this issue occurring.

I've actually been testing without any content in the macro, so the Macro partial is only the 1 line: 1: Macro3

The macro has this turned on "Render in rich text editor and the grid" and turning it off resolves the issue however we ideally want the content to show.

I assume what's happening is that when the content is rendered PersonalisationGroups is trying to set/update the cookie information it uses (there's no personalisation that has been added inside the macro). image

I assumed we could just turn off Personalisation Groups in the admin site, as we run a load balanced env and there is a dedicated admin, particularly when viewing content in the backoffice as it's not needed, so tried disabling it via appsettings but didn't resolve.

Tried playing around with some of the appsettings for the cookie value but didn't resolve either.

Any other thoughts?