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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
}

View file

@ -17,7 +17,7 @@ import type {
import axios from 'axios';
export async function getNodeTypes(baseUrl: string) {
const { data } = await axios.get(baseUrl + 'types/nodes.json');
const { data } = await axios.get(baseUrl + 'types/nodes.json', { withCredentials: true });
return data;
}