Preview Hidden Pages

How to configure your application to preview hidden pages?

The headless extension supports the preview functionality for hidden pages. However, proper configuration is required to ensure your application works as expected.

Since there is no concept of cross-domain cookies, ensure that both your backend and frontend servers share the same root domain (e.g., backend: api.domain.com, frontend: domain.com). Then, set the root domain as cookieDomain (note the dot at the beginning).

$GLOBALS['TYPO3_CONF_VARS']['BE']['cookieDomain'] = '.domain.com';
Copied!

If your frontend application correctly passes all cookies from the backend, you should be able to preview content associated with the root domain.

(Optional) Make the backend application available via a proxy, e.g., domain.com/headless. This step is not strictly necessary for the application to run but can help resolve various issues in the long run.