fix: remove custom header in oidc well known request

This commit is contained in:
wzxjohn
2025-04-25 09:51:01 +08:00
parent 1a8fd61a98
commit 168226ba10

View File

@@ -19,6 +19,7 @@ import {
verifyJSON,
} from '../helpers/utils';
import { API } from '../helpers/api';
import axios from "axios";
const SystemSetting = () => {
let [inputs, setInputs] = useState({
@@ -383,7 +384,7 @@ const SystemSetting = () => {
return;
}
try {
const res = await API.get(inputs['oidc.well_known']);
const res = await axios.create().get(inputs['oidc.well_known']);
inputs['oidc.authorization_endpoint'] =
res.data['authorization_endpoint'];
inputs['oidc.token_endpoint'] = res.data['token_endpoint'];