Allow Link header for translation-server responses via CORS

This commit is contained in:
Dan Stillman 2018-05-15 21:17:45 -04:00
parent 4acd178819
commit 763d7dec75

View File

@ -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";
}
}
}