Skip to content

Commit

Permalink
[SupersetClient] include csrfToken passed in configuration in headers (
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster authored Oct 19, 2018
1 parent 005723f commit 5338194
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint:fix": "lerna run lint:fix",
"prerelease": "yarn run build",
"prepare-release": "git checkout master && git pull --rebase origin master && lerna bootstrap && yarn run lint && yarn run test",
"release": "yarn run prepare-release && lerna publish && lerna run gh-pages",
"release": "yarn run prepare-release && lerna publish",
"test": "lerna run test"
},
"repository": "https://github.com/apache-superset/superset-ui.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/superset-ui-core/src/SupersetClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SupersetClient {
csrfToken = null,
} = config;

this.headers = headers;
this.headers = { ...headers, 'X-CSRFToken': csrfToken };
this.host = host;
this.mode = mode;
this.timeout = timeout;
Expand Down

0 comments on commit 5338194

Please sign in to comment.