Skip to content

Commit 745b93a

Browse files
committed
To avoid problem with CORS requests comment out "If-Modified-Since" header
git-svn-id: https://subversion.gsi.de/dabc/trunk/plugins/root/js@2699 bcbf6573-9a26-0410-9ebc-ce4ab7aade96
1 parent ccd3482 commit 745b93a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/JSRootIOEvolution.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,8 @@
13451345

13461346
if (this.fAcceptRanges)
13471347
xhr.setRequestHeader("Range", "bytes=" + this.fOffset + "-" + (this.fOffset + len));
1348-
xhr.setRequestHeader("If-Modified-Since", "Wed, 31 Dec 1980 00:00:00 GMT");
1348+
// does not work when used with CORS requests
1349+
// xhr.setRequestHeader("If-Modified-Since", "Wed, 31 Dec 1980 00:00:00 GMT");
13491350
xhr.send(null);
13501351
};
13511352

0 commit comments

Comments
 (0)