Anonymous users can not vote

Created on 25 March 2018, almost 7 years ago
Updated 24 July 2023, over 1 year ago

I have created a fresh D8 install and only installed vud and Voting API. I have added vote field to article content type and added permission to vote for all roles including anonymous users.

While authenticated users can vote, anonymous can't. The AJAX loading wheel is just rotating forever, and this is the log that is stored at the moment anonymous user votes:

access denied

/vote/node/1/1?token=[ACTUAL TOKEN]

I was not able to track down the main cause of this issue.

🐛 Bug report
Status

Active

Component

Code

Created by

🇸🇮Slovenia KlemenDEV

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom james.williams

    I'm using the merge request !4311 from core issue 🐛 CSRF check always fails for users without a session Needs work successfully to allow anonymous voting - though I'm on Drupal 9.5, so I did have to make a re-rolled version to apply the change. I like chx's idea from the flag module issue, but decided that for my project the core issue looked like it's close enough to being resolved that it was the most appropriate solution to use.

Production build 0.71.5 2024