diff --git a/packages/editor-ui/src/api/credentials.ts b/packages/editor-ui/src/api/credentials.ts index 54f58b54caf13..cf9d13932b94a 100644 --- a/packages/editor-ui/src/api/credentials.ts +++ b/packages/editor-ui/src/api/credentials.ts @@ -10,7 +10,7 @@ import { import axios from 'axios'; export async function getCredentialTypes(baseUrl: string): Promise { - const { data } = await axios.get(baseUrl + 'types/credentials.json'); + const { data } = await axios.get(baseUrl + 'types/credentials.json', { withCredentials: true }); return data; } diff --git a/packages/editor-ui/src/api/nodeTypes.ts b/packages/editor-ui/src/api/nodeTypes.ts index bd3a9ec677feb..7c7b97a025d28 100644 --- a/packages/editor-ui/src/api/nodeTypes.ts +++ b/packages/editor-ui/src/api/nodeTypes.ts @@ -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; }