]> git.koha-community.org Git - koha.git/commit
Bug 24369: Add CORS support to output_with_http_headers()
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 9 Jan 2020 13:44:09 +0000 (10:44 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 5 Mar 2020 12:59:44 +0000 (12:59 +0000)
commitc951f8e06a8db91308b85f2610ee9a8c4d89297a
treeae1a0c95e7537302c7b11fd9d51dbea0706d9449
parent2526bc3c9f886cd0b31878bd329097b2229faa8f
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@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Output.pm
t/Output.t