https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37060 --- Comment #13 from David Cook <dcook@prosentient.com.au> --- (In reply to Matthias Meusburger from comment #11)
So, the current status is: I already gave it a shot a few weeks back, but didn't succeed at implement David's solution (which works perfectly well using command line) in KOCT.
If anyone has a working fix, we accept pull requests here: https://git.biblibre.com/biblibre/koct-webext
Ah, I forgot it was a browser extension and not a Perl script. That's extra interesting... I'd have to see your patches, but 1 problem would be that "userid" and "password" have become "login_userid" and "login_password" in Koha, so the current koct.js won't authenticate correctly anyway. -- But yeah looking through the koct.js code and offline_circ/service.pl... the Koha session cookie is probably where the problem is. It's been a long time since I wrote a browser extension, so I don't recall the intricacies of CORS requests in them. Might need to set 'xhr.withCredentials = true' to get the cookie response for the SVC API stuff. -- Alas, I won't have time to look at this for a month at least :/. -- You are receiving this mail because: You are watching all bug changes.