When using the JSS Layout Service with my Angular application, I notice that if I add personalized content to my component, the response (and display) I get back from the Layout service depends on a certain flag. [{pageEditing: true, site: {name: "portal.local"}, pageState: "normal", language: "en"}]
If this value is false, my personalization seems to work. If true, it shows some generic HTML content (code). I notice I can control this flag by logging out of the Sitecore instance.
Is there a programmatic way to always request the pageEditing=false version from my app? I understand that the experience editor needs to show the content so it needs to handle both. Thank you.