Don't add Access-Control-Allow-Origin headers to Safari

This commit is contained in:
Simon Kornblith 2011-07-18 20:51:14 +00:00
parent 4c9b5935e8
commit 59066e40b7

View File

@ -67,8 +67,6 @@ Zotero.Server = new function() {
*/
this.generateResponse = function (status, contentType, body) {
var response = "HTTP/1.0 "+status+" "+responseCodes[status]+"\r\n";
response += "Access-Control-Allow-Origin: org.zotero.zoteroconnectorforsafari-69x6c999f9\r\n";
response += "Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD\r\n";
if(body) {
if(contentType) {