Koha-clms/Koha/Middleware
Kyle M Hall 812ac7155d
Bug 41197: Don't require a CSRF token for opac-account-pay-return.pl
This page is intended for redirect/return from external payment vendors - they are not going to have/get a CSRF token from Koha for this.
The payments are handled in a POST to the API, so this should not be a sensitive page, it just provides user confirmation.
Some vendors use only a POST, we should not require CSRF on this page.

Test Plan:
1) Apply the first patch
2) prove t/Koha/Middleware/CSRF.t
3) Note the tests fail!
4) Apply this patch
5) prove t/Koha/Middleware/CSRF.t
6) All tests pass!

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-08-19 14:33:55 +00:00
..
CSRF.pm Bug 41197: Don't require a CSRF token for opac-account-pay-return.pl 2026-08-19 14:33:55 +00:00
ContentSecurityPolicy.pm Bug 38365: Use report-to with Reporting-Endpoints 2026-03-16 11:57:18 +01:00
RealIP.pm Bug 39789: Add ability to specify an alternative header to X-Forwarded-For for finding the real ip address 2026-04-23 16:04:04 -06:00
SetEnv.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
UserEnv.pm
…