https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42739 --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 199772 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199772&action=edit Bug 42739: Add CSRF-TOKEN header to OPAC ratings.js fetch call The ratings.js file uses raw fetch() to POST to the REST API without including the CSRF-TOKEN header. This will fail once CSRF enforcement is enabled on the REST API. Test plan: 1. Apply patch 2. Enable star ratings in OPAC (StarRatings syspref) 3. Log in to the OPAC 4. Rate a biblio using the star widget => SUCCESS: Rating is saved without errors 5. Sign off :-D Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.