fix(editor): Use credentials when fetching node and credential types (#5760)

fix(editor): Use credentials when fetching node and credential types with axios
This commit is contained in:
Milorad FIlipović
2023-03-23 10:31:08 +00:00
committed by GitHub
parent a732374f24
commit d3a34ab71b
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ import {
import axios from 'axios';
export async function getCredentialTypes(baseUrl: string): Promise<ICredentialType[]> {
const { data } = await axios.get(baseUrl + 'types/credentials.json');
const { data } = await axios.get(baseUrl + 'types/credentials.json', { withCredentials: true });
return data;
}