Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#7541] fix(web): change to form data for token api (#7742)

Qian Xiad089db4676d8
diff --git a/web/web/src/lib/api/auth/index.js b/web/web/src/lib/api/auth/index.js
index 27dd08df36..fe9e596ce6 100644
--- a/web/web/src/lib/api/auth/index.js
+++ b/web/web/src/lib/api/auth/index.js
@@ -18,6 +18,7 @@
*/
import { defHttp } from '@/lib/utils/axios'
+import { ContentTypeEnum } from '@/lib/enums/httpEnum'
export const getAuthConfigsApi = () => {
return defHttp.get({
@@ -29,7 +30,10 @@ export const loginApi = (url, params) => {
return defHttp.post(
{
url,
- params
+ data: params,
+ headers: {
+ 'Content-Type': ContentTypeEnum.FORM_URLENCODED
+ }
},
{ withToken: false }
)