@thoughtspot/visual-embed-sdk 1.11.0-auth.0 → 1.11.0-auth.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tsembed.es.js
CHANGED
|
@@ -8687,7 +8687,7 @@ function initMixpanel(sessionInfo) {
|
|
|
8687
8687
|
}
|
|
8688
8688
|
|
|
8689
8689
|
// eslint-disable-next-line import/no-cycle
|
|
8690
|
-
function
|
|
8690
|
+
function failureLoggedFetch(url, options = {}) {
|
|
8691
8691
|
return fetch(url, options).then(async (r) => {
|
|
8692
8692
|
if (!r.ok) {
|
|
8693
8693
|
console.error('Failure', await r.json());
|
|
@@ -8696,20 +8696,23 @@ function errorLoggedFetch(url, options) {
|
|
|
8696
8696
|
});
|
|
8697
8697
|
}
|
|
8698
8698
|
function fetchSessionInfoService(authVerificationUrl) {
|
|
8699
|
-
return
|
|
8699
|
+
return failureLoggedFetch(authVerificationUrl, {
|
|
8700
8700
|
credentials: 'include',
|
|
8701
|
+
redirect: 'manual',
|
|
8701
8702
|
});
|
|
8702
8703
|
}
|
|
8703
8704
|
async function fetchAuthTokenService(authEndpoint) {
|
|
8704
8705
|
return fetch(authEndpoint);
|
|
8705
8706
|
}
|
|
8706
8707
|
async function fetchAuthService(thoughtSpotHost, username, authToken) {
|
|
8707
|
-
return
|
|
8708
|
+
return failureLoggedFetch(`${thoughtSpotHost}${EndPoints.TOKEN_LOGIN}?username=${username}&auth_token=${authToken}`, {
|
|
8708
8709
|
credentials: 'include',
|
|
8710
|
+
}).catch((e) => {
|
|
8711
|
+
console.error(e);
|
|
8709
8712
|
});
|
|
8710
8713
|
}
|
|
8711
8714
|
async function fetchBasicAuthService(thoughtSpotHost, username, password) {
|
|
8712
|
-
return
|
|
8715
|
+
return failureLoggedFetch(`${thoughtSpotHost}${EndPoints.BASIC_LOGIN}`, {
|
|
8713
8716
|
method: 'POST',
|
|
8714
8717
|
headers: {
|
|
8715
8718
|
'content-type': 'application/x-www-form-urlencoded',
|
|
@@ -9104,7 +9107,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
9104
9107
|
}
|
|
9105
9108
|
}
|
|
9106
9109
|
|
|
9107
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.11.0-auth.
|
|
9110
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.11.0-auth.3";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**"];var exports={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1","mixpanel-browser":"^2.41.0"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","dts-bundle":"0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.1.0","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
9108
9111
|
|
|
9109
9112
|
/**
|
|
9110
9113
|
* Copyright (c) 2022
|
package/dist/tsembed.js
CHANGED
|
@@ -8656,7 +8656,7 @@
|
|
|
8656
8656
|
}
|
|
8657
8657
|
|
|
8658
8658
|
// eslint-disable-next-line import/no-cycle
|
|
8659
|
-
function
|
|
8659
|
+
function failureLoggedFetch(url, options = {}) {
|
|
8660
8660
|
return fetch(url, options).then(async (r) => {
|
|
8661
8661
|
if (!r.ok) {
|
|
8662
8662
|
console.error('Failure', await r.json());
|
|
@@ -8665,20 +8665,23 @@
|
|
|
8665
8665
|
});
|
|
8666
8666
|
}
|
|
8667
8667
|
function fetchSessionInfoService(authVerificationUrl) {
|
|
8668
|
-
return
|
|
8668
|
+
return failureLoggedFetch(authVerificationUrl, {
|
|
8669
8669
|
credentials: 'include',
|
|
8670
|
+
redirect: 'manual',
|
|
8670
8671
|
});
|
|
8671
8672
|
}
|
|
8672
8673
|
async function fetchAuthTokenService(authEndpoint) {
|
|
8673
8674
|
return fetch(authEndpoint);
|
|
8674
8675
|
}
|
|
8675
8676
|
async function fetchAuthService(thoughtSpotHost, username, authToken) {
|
|
8676
|
-
return
|
|
8677
|
+
return failureLoggedFetch(`${thoughtSpotHost}${EndPoints.TOKEN_LOGIN}?username=${username}&auth_token=${authToken}`, {
|
|
8677
8678
|
credentials: 'include',
|
|
8679
|
+
}).catch((e) => {
|
|
8680
|
+
console.error(e);
|
|
8678
8681
|
});
|
|
8679
8682
|
}
|
|
8680
8683
|
async function fetchBasicAuthService(thoughtSpotHost, username, password) {
|
|
8681
|
-
return
|
|
8684
|
+
return failureLoggedFetch(`${thoughtSpotHost}${EndPoints.BASIC_LOGIN}`, {
|
|
8682
8685
|
method: 'POST',
|
|
8683
8686
|
headers: {
|
|
8684
8687
|
'content-type': 'application/x-www-form-urlencoded',
|
|
@@ -9073,7 +9076,7 @@
|
|
|
9073
9076
|
}
|
|
9074
9077
|
}
|
|
9075
9078
|
|
|
9076
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.11.0-auth.
|
|
9079
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.11.0-auth.3";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**"];var exports$1={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1","mixpanel-browser":"^2.41.0"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","dts-bundle":"0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.1.0","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
9077
9080
|
|
|
9078
9081
|
/**
|
|
9079
9082
|
* Copyright (c) 2022
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line import/no-cycle
|
|
2
2
|
import { EndPoints } from '../auth';
|
|
3
|
-
function
|
|
3
|
+
function failureLoggedFetch(url, options = {}) {
|
|
4
4
|
return fetch(url, options).then(async (r) => {
|
|
5
5
|
if (!r.ok) {
|
|
6
6
|
console.error('Failure', await r.json());
|
|
@@ -9,20 +9,23 @@ function errorLoggedFetch(url, options) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
export function fetchSessionInfoService(authVerificationUrl) {
|
|
12
|
-
return
|
|
12
|
+
return failureLoggedFetch(authVerificationUrl, {
|
|
13
13
|
credentials: 'include',
|
|
14
|
+
redirect: 'manual',
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
17
|
export async function fetchAuthTokenService(authEndpoint) {
|
|
17
18
|
return fetch(authEndpoint);
|
|
18
19
|
}
|
|
19
20
|
export async function fetchAuthService(thoughtSpotHost, username, authToken) {
|
|
20
|
-
return
|
|
21
|
+
return failureLoggedFetch(`${thoughtSpotHost}${EndPoints.TOKEN_LOGIN}?username=${username}&auth_token=${authToken}`, {
|
|
21
22
|
credentials: 'include',
|
|
23
|
+
}).catch((e) => {
|
|
24
|
+
console.error(e);
|
|
22
25
|
});
|
|
23
26
|
}
|
|
24
27
|
export async function fetchBasicAuthService(thoughtSpotHost, username, password) {
|
|
25
|
-
return
|
|
28
|
+
return failureLoggedFetch(`${thoughtSpotHost}${EndPoints.BASIC_LOGIN}`, {
|
|
26
29
|
method: 'POST',
|
|
27
30
|
headers: {
|
|
28
31
|
'content-type': 'application/x-www-form-urlencoded',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authService.js","sourceRoot":"","sources":["../../../src/utils/authService.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,SAAS,
|
|
1
|
+
{"version":3,"file":"authService.js","sourceRoot":"","sources":["../../../src/utils/authService.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,SAAS,kBAAkB,CACvB,GAAW,EACX,UAAuB,EAAE;IAEzB,OAAO,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;QACxC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;YACP,OAAO,CAAC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;SAC5C;QACD,OAAO,CAAC,CAAC;IACb,CAAC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,uBAAuB,CACnC,mBAA2B;IAE3B,OAAO,kBAAkB,CAAC,mBAAmB,EAAE;QAC3C,WAAW,EAAE,SAAS;QACtB,QAAQ,EAAE,QAAQ;KACrB,CAAC,CAAC;AACP,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACvC,YAAoB;IAEpB,OAAO,KAAK,CAAC,YAAY,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAClC,eAAuB,EACvB,QAAgB,EAChB,SAAiB;IAEjB,OAAO,kBAAkB,CACrB,GAAG,eAAe,GAAG,SAAS,CAAC,WAAW,aAAa,QAAQ,eAAe,SAAS,EAAE,EACzF;QACI,WAAW,EAAE,SAAS;KACzB,CACJ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;QACV,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACvC,eAAuB,EACvB,QAAgB,EAChB,QAAgB;IAEhB,OAAO,kBAAkB,CAAC,GAAG,eAAe,GAAG,SAAS,CAAC,WAAW,EAAE,EAAE;QACpE,MAAM,EAAE,MAAM;QACd,OAAO,EAAE;YACL,cAAc,EAAE,mCAAmC;YACnD,gBAAgB,EAAE,aAAa;SAClC;QACD,IAAI,EAAE,YAAY,kBAAkB,CAChC,QAAQ,CACX,aAAa,kBAAkB,CAAC,QAAQ,CAAC,EAAE;QAC5C,WAAW,EAAE,SAAS;KACzB,CAAC,CAAC;AACP,CAAC"}
|
package/package.json
CHANGED
package/src/utils/authService.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// eslint-disable-next-line import/no-cycle
|
|
2
2
|
import { EndPoints } from '../auth';
|
|
3
3
|
|
|
4
|
-
function
|
|
4
|
+
function failureLoggedFetch(
|
|
5
5
|
url: string,
|
|
6
|
-
options: RequestInit,
|
|
6
|
+
options: RequestInit = {},
|
|
7
7
|
): Promise<Response> {
|
|
8
8
|
return fetch(url, options).then(async (r) => {
|
|
9
9
|
if (!r.ok) {
|
|
@@ -16,8 +16,9 @@ function errorLoggedFetch(
|
|
|
16
16
|
export function fetchSessionInfoService(
|
|
17
17
|
authVerificationUrl: string,
|
|
18
18
|
): Promise<any> {
|
|
19
|
-
return
|
|
19
|
+
return failureLoggedFetch(authVerificationUrl, {
|
|
20
20
|
credentials: 'include',
|
|
21
|
+
redirect: 'manual',
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -32,12 +33,14 @@ export async function fetchAuthService(
|
|
|
32
33
|
username: string,
|
|
33
34
|
authToken: string,
|
|
34
35
|
): Promise<any> {
|
|
35
|
-
return
|
|
36
|
+
return failureLoggedFetch(
|
|
36
37
|
`${thoughtSpotHost}${EndPoints.TOKEN_LOGIN}?username=${username}&auth_token=${authToken}`,
|
|
37
38
|
{
|
|
38
39
|
credentials: 'include',
|
|
39
40
|
},
|
|
40
|
-
)
|
|
41
|
+
).catch((e) => {
|
|
42
|
+
console.error(e);
|
|
43
|
+
});
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
export async function fetchBasicAuthService(
|
|
@@ -45,7 +48,7 @@ export async function fetchBasicAuthService(
|
|
|
45
48
|
username: string,
|
|
46
49
|
password: string,
|
|
47
50
|
): Promise<any> {
|
|
48
|
-
return
|
|
51
|
+
return failureLoggedFetch(`${thoughtSpotHost}${EndPoints.BASIC_LOGIN}`, {
|
|
49
52
|
method: 'POST',
|
|
50
53
|
headers: {
|
|
51
54
|
'content-type': 'application/x-www-form-urlencoded',
|