Allow cross-origin request from user permitted origin

Zotero currently only allows bookmarklet to send cross-origin requests. It would be better that through some advanced settings, servers that are allowed by user can also send cross-origin requests to Zotero. Only need to change the code in [this function](https://github.com/zotero/zotero/blob/main/chrome/content/zotero/xpcom/server.js#L346) to achieve this, by changing the condition in the red circled part.

https://s3.amazonaws.com/zotero.org/images/forums/u8935830/95d0rld8dhm4za5qnlxp.png
Sign In or Register to comment.