Koha/opac/svc
Tomas Cohen Arazi 53ef5a4078
Bug 24384: Add Access-Control-Allow-Origin support to OPAC reports svc
This patch makes the opac/svc/report script use output_with_http_headers
so it sets the Access-Control-Allow-Origin header.

To test:
1. Create a new public report and remember the report id
2. Use your favourite too to fetch the report in JSON by issuing:
   GET http://localhost:8080/cgi-bin/koha/svc/report?id=1
=> FAIL: There is no Access-Control-Allow-Origin header
3. Apply this patch
4. Restart Plack
   $ sudo koha-plack --restart kohadev
5. Set the AccessControlAllowOrigin to anything (for example,
   https://koha-community.org)
6. Repeat 2
=> SUCCESS: On the response headers you find
Access-Control-Allow-Origin: https://koha-community.org
7. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-19 09:23:13 +00:00
..
auth Bug 22542: Force back button to display personal data 2019-05-02 13:43:48 +00:00
club Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
checkout_notes Bug 22821: Rename method with ->inbound_email_address 2020-03-18 15:44:27 +00:00
overdrive Bug 22030: Use preference to determine username sent to overdrive 2019-01-08 13:59:46 +00:00
overdrive_proxy Bug 22010: Check preferences for ebook integration 2019-04-30 11:42:51 +00:00
recordedbooks
report Bug 24384: Add Access-Control-Allow-Origin support to OPAC reports svc 2020-03-19 09:23:13 +00:00
shelfbrowser.pl
suggestion