Don't send options we don't need to `fetch`

pull/21833/head
Travis Ralston 2019-03-29 15:48:33 -06:00
parent 62ba7dde94
commit 8d14dc4e26
1 changed files with 1 additions and 6 deletions

View File

@ -401,12 +401,7 @@ module.exports = React.createClass({
// Start a fetch for the download
// Based upon https://stackoverflow.com/a/49500465
fetch(contentUrl, {
headers: new Headers({
'Origin': window.location.origin,
}),
mode: 'cors',
}).then((response) => response.blob()).then((blob) => {
fetch(contentUrl).then((response) => response.blob()).then((blob) => {
const blobUrl = URL.createObjectURL(blob);
// We have to create an anchor to download the file