I asked a relevant question in another thread, so would like to ask here as well. I'm not super familiar with CORS limitations though, so let me know if I misunderstand any of its concepts:
=======================================
I am trying the local API out by integrating it into an Electron app (
logseq),
but got 403 "Request not allowed". The same happened when I just
accessed the API using a browser (firefox, chromium). I checked out the
source code,
and found out that if I include the header
"x-zotero-connector-api-version" or "zotero-allowed-request" in my
request, then I get the response just fine.
Questions:
- Why does the API protect against requests made by
- What is the proper way to access the local API from an Electron app?
- What
do headers "x-zotero-connector-api-version", "zotero-allowed-request"
mean? Can I just include those in my request to access the API? What
should their values actually be?
This is actually my first time looking at Zotero source code, so any general guidance is very welcome!
Oras.