https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42739
--- Comment #3 from Jonathan Druart <[email protected]> --- Created attachment 199801 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199801&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 <[email protected]> Signed-off-by: David Nind <[email protected]> Signed-off-by: Jonathan Druart <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
