Why is this needed at all? Shouldn't the addon be free from browser restrictions? Is this also needed for Zotero 7 addons?
Thanks!
Dan Stillman
unread,
May 29, 2024, 7:33:43 AMMay 29
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to zoter...@googlegroups.com
I can't speak to what that plugin is doing, but HTTP requests from
plugins shouldn't be subject to same-origin restrictions, no.
XY Wong
unread,
May 29, 2024, 7:36:49 AMMay 29
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to zotero-dev
The function you linked to (createCORSRequest) does nothing special but creates an XMLHttpRequest. There shouldn't be a CROS restriction for plugins in Zotero 6 or Zoter 7.
Btw, the plugin you mentioned is very old and is not a good example for developing new plugins. See the official example https://github.com/zotero/make-it-red
maie...@gmail.com
unread,
May 30, 2024, 4:21:37 AMMay 30
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to zotero-dev
HTTP-Request work just fine in Plugins. There are a couple of plugins that use them, and it works.