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 and zhaoyongjie committed Nov 24, 2021
1 parent c9acbea commit e901b23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
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 e901b23

Please sign in to comment.