- 🇮🇳India heykarthikwithu Bengaluru 🌍
Need to fix the CSRF issue within https://www.drupal.org/project/like_dislike/issues/2943324 🐛 Anonymous user get the 'cs_rf token' error when clicked on Like/Dislike Fixed
Drupal version - 9.3.7
like_dislike version - 2.1.0
Installed using below command-
composer require 'drupal/like_dislike:^2.1'
Added field to the blog content type but on the node view page getting below error in browser console-
Uncaught TypeError: Cannot read properties of undefined (reading '/projects/drupal8/web/like-dislike/like/eyJlbnRpdHlfdHlwZSI6Im5vZGUiLCJlbnRpdHlfaWQiOiI2IiwiZmllbGRfbmFtZSI6ImZpZWxkX2xpa2UiLCJsaWtlcyI6IjEifQ%3D%3D?token=rpEW-hy6WdJBH-7RprJ6G0Wg9DPOLSf5zNYp9LoSPTA?like-dislike-redirect=LOCAL_NODE_URL')
Due to this error, when clicked on the Like button it redirects user to the above page with the message - You are not authorized to access this page.
Any help would appreciated. Thanks in advance.
Closed: duplicate
2.1
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Need to fix the CSRF issue within https://www.drupal.org/project/like_dislike/issues/2943324 🐛 Anonymous user get the 'cs_rf token' error when clicked on Like/Dislike Fixed