[Koha-bugs] [Bug 24369] Add ability to set CORS header in Koha

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 4 19:41:25 CET 2020


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

--- Comment #9 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 100145
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100145&action=edit
Bug 24369: Add CORS support to output_with_http_headers()

This patch adds CORS support to output_with_headers(). It will use the
AccessControlAllowOrigin syspref to pick the value and set the
Access-Control-Allow-Origin header.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/Output.t
SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Andrew Isherwood <andrew.isherwood at ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list