Skip to Main Content
Customer Feedback

We love feedback from you on our products and the problems in your daily work that you would like us to solve. Please describe the challenge you're encountering and your desired outcome. Be as detailed as possible.

For technical issues or bugs please head to Support or our Developer Community. You can assign up to 20 votes in total. Thank you for your feedback.

Status explanation: 'Future Consideration' = Continuing to collect further feedback, not planned at this time. 'Investigating' = Prioritized for deeper customer and feasibility investigations ahead of planning development.

Categories APIs
Created by Guest
Created on Feb 19, 2024

Preview unpublished content delivered by Content Delivery API

In the documentation it says that it is possible to enable previews of unpublished content delivered by Content Delivery API https://docs.developers.optimizely.com/content-management-system/v1.5.0-content-delivery-api/docs/customizing-content-delivery-api-for-edit-view. However the example that is provided wont work since HttpContextContextModeResolver that it uses checks for values in the current request that indicates that the request is made to the cms edit mode.

This will never be true when you are using Content Delivery API to fetch the content since the request is made to /api/episerver/v3.0/content/... and not /episerver/cms/...

In my opinion, Optimizely should have a built in way of previewing unpublished content delivered by Content Delivery API or at least a solution that we as developers can implement in our projects.