Skip to content

Commit

Permalink
BUGFIX: add @Flow\IgnoreValidation("node") to node's showAction().
Browse files Browse the repository at this point in the history
  • Loading branch information
samsauter authored Aug 12, 2024
1 parent 621ba52 commit 684251d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Neos.Neos/Classes/Controller/Frontend/NodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class NodeController extends ActionController
* @Flow\SkipCsrfProtection We need to skip CSRF protection here because this action could be called
* with unsafe requests from widgets or plugins that are rendered on the node
* - For those the CSRF token is validated on the sub-request, so it is safe to be skipped here
*/
*/
public function previewAction(string $node): void
{
// @todo add $renderingModeName as parameter and append it for successive links again as get parameter to node uris
Expand Down Expand Up @@ -187,9 +187,9 @@ public function previewAction(string $node): void
* @throws \Neos\Flow\Mvc\Routing\Exception\MissingActionNameException
* @throws \Neos\Flow\Session\Exception\SessionNotStartedException
* @throws \Neos\Neos\Exception
* @Flow\SkipCsrfProtection We need to skip CSRF protection here because this action could be called
* with unsafe requests from widgets or plugins that are rendered on the node
* - For those the CSRF token is validated on the sub-request, so it is safe to be skipped here
* We need to skip CSRF protection here because this action could be called with unsafe requests from widgets or plugins that are rendered on the node - For those the CSRF token is validated on the sub-request, so it is safe to be skipped here
* @Flow\SkipCsrfProtection
* @Flow\IgnoreValidation("node")
*/
public function showAction(string $node): void
{
Expand Down

0 comments on commit 684251d

Please sign in to comment.