[Koha] Koha API issue
Tomas Cohen Arazi
tomascohen at gmail.com
Mon Aug 8 04:33:08 NZST 2022
We added a couple CORS related system preferences that can be used to solve
that.
Another option is to set them in Apache or whatever reverse proxy you have
in front of Koha.
I suggest you just search for CORS on the sysprefs.
El dom, 7 ago 2022 2:12, Dibyendra Hyoju <dibyendra at gmail.com> escribió:
> Hi everyone,
>
> We are trying to access Koha data using Koha API from a different system.
> We are using the Angular JS V2 library to access Koha API. While accessing
> the API, we encountered a CORS error stating "Access to XMLHttpRequest at "
> http://opac.tucl.edu.np:81/api" from origin "http://localhost:4200" has
> been blocked by CORS policy. The detail of the error is provided in the
> screenshot below. We have also tried to set the value for the
> AccessControlAllowOrigin
> system preference with the value "http://localhost:4200". As it didn't
> resolve the issue, we also set the preference value as an asterisk '*'.
> However, we still encountered the same error.
>
> [image: error_2022-08-06_17-38-43-985.jpg]
>
> If anyone had already resolved this kind of issue earlier, please share
> your experience. We would highly appreciate it.
>
> Thank you.
>
> --
> Regards,
> Dibyendra Hyoju
> _______________________________________________
>
> Koha mailing list http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>
More information about the Koha
mailing list