Expand my Community achievements bar.

SOLVED

Authenticated State in Visual Editor

Avatar

Level 2

I am using the visual editor in Adobe Target to make changes to a component that only shows on the page if you are logged in. The issue I am running into is making the page inside the visual editor recognize that I am logged in. I am logged in to the site in the browser, but when it loads in the visual editor, it is in a logged out state. If I try logging in through the visual editor, it errors out and just shows a blank page. Is there anyway to force the visual editor to recognize I am logged in to my site?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @MelissaMa7 , 

It is most likely caused by login-related cookies being blocked.

I would start with trying in Firefox, if possible. Target seems to function better in Firefox. If you're still having issues, see if you can identify any required cookies for the login. If any of the cookies don't have SameSite=None, they will not be passed when you're trying to login via the VEC browser. More details here.

View solution in original post

5 Replies

Avatar

Community Advisor

Hi @MelissaMa7 

Basically, The VEC loads the page in an iframe, which often prevents it from inheriting the logged-in state due to cookie or session issues.

 

Did you try with browse mode available in VEC through which you can browse the site and then do login. Once you login successfully then shift to compose mode for doing modifications/changes to your page. 

 

In case if this already tried and still facing issues, check once with injecting VEC helper extension in chrome browser. 

https://experienceleague.adobe.com/en/docs/target/using/experiences/vec/troubleshoot-composer/vec-he... 

See if this options helps. 

Avatar

Level 2

Thanks! The documentation helped! Was able to mess with the helper extension to get it working. I also used Firefox over Chrome which seemed to work much better.

Avatar

Correct answer by
Community Advisor

Hi @MelissaMa7 , 

It is most likely caused by login-related cookies being blocked.

I would start with trying in Firefox, if possible. Target seems to function better in Firefox. If you're still having issues, see if you can identify any required cookies for the login. If any of the cookies don't have SameSite=None, they will not be passed when you're trying to login via the VEC browser. More details here.

Avatar

Level 2

Thank you! Using Firefox and messing with the VEC extension options worked. I was able to use browse to log in through the VEC and change what I needed.