We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84d1ea3 commit 3464e6bCopy full SHA for 3464e6b
client/packages/lowcoder/src/comps/utils/remote.ts
@@ -39,7 +39,13 @@ export function parseCompType(compType: string) {
39
}
40
41
export async function getNpmPackageMeta(packageName: string) {
42
- const res = await axios.get<NpmPackageMeta>(`${NPM_REGISTRY_URL}/none/${packageName}`);
+ const axiosInstance = axios.create({
43
+ baseURL: NPM_REGISTRY_URL,
44
+ withCredentials: true,
45
+ })
46
+ const res = await axiosInstance.get<NpmPackageMeta>(
47
+ `/none/${packageName}`,
48
+ );
49
if (res.status >= 400) {
50
return null;
51
0 commit comments