Documentation Center

Passing along a preview session token when using Experience Manager

When requesting a session preview page for Experience Manager, ensure that you fetch the preview session token from a cookie and pass it into your GraphQL request in the form of an HTTP request header.

Procedure

  1. In your web application, retrieve the value of the cookie called preview-session-token. This cookie contains the unique session token for the visitor's Experience Manager editing session.
  2. In any request you send to the GraphQL endpoint, ensure the presence of an HTTP request header called X-Preview-Session-Token, set to the value you just fetched from the cookie.