Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-12437

Pass visitor id in the SPA SDK along with the Page Model API request

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.1.0
    • None
    • None
    • 0.5
    • Quasar
    • Turing & Tiger Sprint 224, Puma Sprint 227, Puma Sprint 228-SaaS BrX v0.2

    Description

      In order to provide seamless integration with relevance from the SPA SDK, we need to be able to pass visitor id in the Page Model API request headers.

      Problem context:
      It's not possible to pass a cookie in the client-side request when the render has happened on the SPA backend (isomorphic SPA).

      Proposed solution:
      1. Pass visitor id to the initialize method in the configuration.
      2. Implement getter for the visitor id in the Page class.
      3. Use the visitor id from the page in the component update requests.
      4. Use the visitor id parameter from the configuration in the page requests.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mdokolin Mikhail Dokolin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: