Skip to content

Commit

Permalink
send credential (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette authored Jan 30, 2024
1 parent 8a3d950 commit d0fc891
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/off.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ const offService = {
);
},

// TODO: fix method name
setIngedrient(editionParams: { code: string; text: string; lang?: string }) {
const { code, lang, text } = editionParams;
if (!code) {
Expand All @@ -169,7 +168,9 @@ const offService = {
code,
[`ingredients_text${lang ? `_${lang}` : ""}`]: text,
});
axios.post(`${OFF_URL}/cgi/product_jqm2.pl?${urlParams.toString()}`);
axios.post(`${OFF_URL}/cgi/product_jqm2.pl?${urlParams.toString()}`, {
withCredentials: true,
});
},

async getIngedrientParsing(editionParams: { text: string; lang: string }) {
Expand Down

0 comments on commit d0fc891

Please sign in to comment.