mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Allow Link header for translation-server responses via CORS
This commit is contained in:
parent
4acd178819
commit
763d7dec75
1 changed files with 1 additions and 0 deletions
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue