Koha-clms/t/db_dependent/api/v1
Tomas Cohen Arazi 1af4010ff7
Bug 24369: Add CORS support to the API
This patch adds CORS support for API requests. It uses the
AccessControlAllowOrigin syspref. To test:

1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/auth.t
=> SUCCESS: Tests pass!
3. Set the AccessControlAllowOrigin to any string (for example, *)
4. Use any API testing tool (Postman?) to place a request on the API
=> SUCCESS: The response headers include Access-Control-Allow-Origin,
    containing what you set on the syspref
5. 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>
2020-03-05 12:59:50 +00:00
..
acquisitions_funds.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
acquisitions_orders.t Bug 22522: Fix several REST API tests 2020-02-25 13:44:22 +00:00
acquisitions_vendors.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
auth.t Bug 24369: Add CORS support to the API 2020-03-05 12:59:50 +00:00
auth_authenticate_api_request.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
auth_basic.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
biblios.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
checkouts.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
cities.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
clubs_holds.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
holds.t Bug 24680: Fix end_date returned from api/v1/holds/{hold_id}/suspension endpoint 2020-02-26 20:40:27 +00:00
illrequests.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
items.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
libraries.t Bug 22522: Fix several REST API tests 2020-02-25 13:44:22 +00:00
oauth.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
patrons.t Bug 22522: Fix several REST API tests 2020-02-25 13:44:22 +00:00
patrons_accounts.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
patrons_password.t Bug 22522: Fix several REST API tests 2020-02-25 13:44:22 +00:00
return_claims.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
stockrotationstage.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00