Skip to content

Commit

Permalink
fix(editor): Use credentials when fetching node and credential types (#…
Browse files Browse the repository at this point in the history
…5760)

fix(editor): Use credentials when fetching node and credential types with axios
  • Loading branch information
MiloradFilipovic committed Mar 23, 2023
1 parent a732374 commit d3a34ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/editor-ui/src/api/credentials.ts
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/editor-ui/src/api/nodeTypes.ts
Expand Up @@ -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;
}

Expand Down

0 comments on commit d3a34ab

Please sign in to comment.