Closed (works as designed)
Project:
JSON:API Node Preview
Version:
1.0.0-beta1
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Reporter:
Created:
4 Apr 2022 at 13:30 UTC
Updated:
24 Apr 2022 at 06:49 UTC
Jump to comment: Most recent
Comments
Comment #2
albertosilvaEnabling anonymous access to a node's preview data is, by design, a security breach, so I wouldn't recommend doing it. Preview data is stored using Drupal\Core\TempStore\PrivateTempStoreFactory, which is tied to the current user making the request, so I don't think it is even possible to do it.
JSON:API Node Preview module doesn't enforce any check on a node's preview data, leaving Drupal Core manage that access check in it's standard way: https://git.drupalcode.org/project/jsonapi_node_preview/-/blob/1.0.x/src...
Anyway, if you want to try it, have a look at: