https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42739

--- Comment #1 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 199768
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199768&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]>

-- 
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/

Reply via email to