Remove setRequestHeaders line
This commit is contained in:
parent
d3acce9b78
commit
d4b569187e
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ function getReportHistory(event) {
|
|||
console.log(`Attempting a connection to the following endpoint: ${url}`);
|
||||
|
||||
xhr.open("GET", url, true);
|
||||
xhr.setRequestHeader("Authorization", `Token ${token}`);
|
||||
//xhr.setRequestHeader("Authorization", `Token ${token}`);
|
||||
xhr.onreadystatechange = function() {
|
||||
if (this.readyState === 4) {
|
||||
if (this.status === 200) {
|
||||
|
|
Loading…
Reference in a new issue