Skip to content

Commit 9712205

Browse files
committed
fix(core): utilisation possible d'un proxy CORS pour fetchContentFromMultipleSources
1 parent 1713c91 commit 9712205

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/js/core/chatbot/helpers/fetch.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export async function fetchContentWithProxyIfNeeded(url) {
4646
// Pour récupérer le contenu de plusieurs fichiers à partir d'un tableau d'URLS
4747
export async function fetchContentFromMultipleSources(urls) {
4848
const contents = await Promise.all(
49-
urls.map((url) => fetchContent(handleURL(url))),
49+
urls.map((url) => fetchContentWithProxyIfNeeded(handleURL(url))),
5050
);
5151
return contents.join("\n");
5252
}

app/script.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/script.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)