akirk / friends

A social network between WordPresses. Privacy focused, by itself a self-hosted RSS++ reader with notifications.
https://wpfriends.at/
GNU General Public License v2.0
81 stars 14 forks source link

reblog gets a 403 forbidden error - _ajax_nonce has no value set #295

Closed lordmatt closed 6 months ago

lordmatt commented 6 months ago

On two separate installs, I've been trying to work out why reblog does not work. On Firefox and Chrome, I have had the console open and seen consistent 403 errors.

I have run WordPress with only Friends active and talked to my host support (they could see no errors in the logs). I also aggressively removed the server-side cache for JavaScript.

After a few weeks of looking into this (off and on), I noticed _ajax_nonce lacks a value according to the console on both browsers. I guess that the nonce is not set for this particular action. I'm assuming this is the root of the bug.

I'm not familiar with the code to easily search through and find out where it is happening.