Skip to content

Commit

Permalink
Merge pull request #27 from kachkaev/patch-1
Browse files Browse the repository at this point in the history
Fix cors error thrown by browsers
  • Loading branch information
OlegIlyenko authored Oct 11, 2017
2 parents 6cd9d52 + 24c874e commit 967c3d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GraphiQLTab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ export class GraphiQLTab extends React.Component {
method: 'post',
headers: headers,
body: JSON.stringify(params),
credentials: 'include',
credentials: 'same-origin',
}).then(response => response.text())
.then(responseBody => {
try {
Expand Down Expand Up @@ -565,4 +565,4 @@ export class GraphiQLTab extends React.Component {
this.subscriptionsClient = null
}
}
}
}

0 comments on commit 967c3d5

Please sign in to comment.