mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
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:
committed by
GitHub
parent
a732374f24
commit
d3a34ab71b
@@ -10,7 +10,7 @@ import {
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
export async function getCredentialTypes(baseUrl: string): Promise<ICredentialType[]> {
|
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;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import type {
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
export async function getNodeTypes(baseUrl: string) {
|
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;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user