www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 763d7dec75c797bd49d7ddc51e313056d6b736ce
parent 4acd178819c6f7d51eb68719b98941d256d4cce9
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 15 May 2018 21:17:45 -0400

Allow Link header for translation-server responses via CORS

Diffstat:
Mchrome/content/zotero/xpcom/server.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/server.js b/chrome/content/zotero/xpcom/server.js @@ -347,6 +347,7 @@ Zotero.Server.DataListener.prototype._generateResponse = function (status, conte response += "Access-Control-Allow-Origin: " + (allAllowed ? '*' : this.origin) + "\r\n"; response += "Access-Control-Allow-Methods: POST, GET, OPTIONS\r\n"; response += "Access-Control-Allow-Headers: Content-Type\r\n"; + response += "Access-Control-Expose-Headers: Link\r\n"; } } }