Closed dstillman closed 2 months ago
I'm not totally sure that we can do this on MV3. The new endpoint requires a XSRF token that's stored in a cookie, and AFAICT we don't have access to doc.cookie
on MV3.
@mrtcode: Would it be possible to copy cookies into the sandbox?
That would be @adomasven. But I think we have cookies. Otherwise all sorts of things (e.g., any gated site that required a subsequent HTTP request) wouldn't be working. (It might not work in Safari, though.)
Sorry, getting mixed up with my mentions…
We have cookies, but I don’t think a translator can programmatically access them, which is what we need here. We need to get the value of a cookie and add it as a query param on a request, in addition to sending it as a cookie along with the request. The site wants both.
doc.cookie
not available with MV3, but trivial to expose. On other platforms it's already accessible. Should I expose it on the MV3 Connector?
Yeah, that would be helpful.
Done on master.
https://forums.zotero.org/discussion/115744/emerald-insight-translator-issus-wrong-year-of-publication-first-online-date-instead-is-captured