Skip to content

Commit

Permalink
Attempt cross-site origin fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Mar 7, 2016
1 parent d171130 commit bdef9fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
function getProcessor(styleID) {
// Get the CSL style as a serialized string of XML
var xhr = new XMLHttpRequest();
var xhr.setRequestHeader("Origin", "https://citeproc-js.readthedocs.org");
xhr.open('GET', 'https://www.zotero.org/styles/' + styleID + '?source=1', false);
xhr.send(null);
var styleAsText = xhr.responseText;
Expand Down

0 comments on commit bdef9fc

Please sign in to comment.