diff --git a/web/app/components/workflow/nodes/http/default.ts b/web/app/components/workflow/nodes/http/default.ts index 1bd584eeb9..3f9df0178d 100644 --- a/web/app/components/workflow/nodes/http/default.ts +++ b/web/app/components/workflow/nodes/http/default.ts @@ -22,6 +22,7 @@ const nodeDefault: NodeDefault = { type: BodyType.none, data: [], }, + ssl_verify: true, timeout: { max_connect_timeout: 0, max_read_timeout: 0, diff --git a/web/app/components/workflow/nodes/http/panel.tsx b/web/app/components/workflow/nodes/http/panel.tsx index 9a07c0ad61..c90b26f5b6 100644 --- a/web/app/components/workflow/nodes/http/panel.tsx +++ b/web/app/components/workflow/nodes/http/panel.tsx @@ -10,6 +10,7 @@ import type { HttpNodeType } from './types' import Timeout from './components/timeout' import CurlPanel from './components/curl-panel' import cn from '@/utils/classnames' +import Switch from '@/app/components/base/switch' import Field from '@/app/components/workflow/nodes/_base/components/field' import Split from '@/app/components/workflow/nodes/_base/components/split' import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/components/output-vars' @@ -47,6 +48,7 @@ const Panel: FC> = ({ showCurlPanel, hideCurlPanel, handleCurlImport, + handleSSLVerifyChange, } = useConfig(id, data) // To prevent prompt editor in body not update data. if (!isDataReady) @@ -124,6 +126,17 @@ const Panel: FC> = ({ onChange={setBody} /> + + }> + { setInputs(newInputs) }, [inputs, setInputs]) + const handleSSLVerifyChange = useCallback((checked: boolean) => { + const newInputs = produce(inputs, (draft: HttpNodeType) => { + draft.ssl_verify = checked + }) + setInputs(newInputs) + }, [inputs, setInputs]) + return { readOnly, isDataReady, @@ -164,6 +171,8 @@ const useConfig = (id: string, payload: HttpNodeType) => { toggleIsParamKeyValueEdit, // body setBody, + // ssl verify + handleSSLVerifyChange, // authorization isShowAuthorization, showAuthorization, diff --git a/web/i18n/de-DE/workflow.ts b/web/i18n/de-DE/workflow.ts index 55f5bac0e1..90969c85f9 100644 --- a/web/i18n/de-DE/workflow.ts +++ b/web/i18n/de-DE/workflow.ts @@ -537,6 +537,7 @@ const translation = { title: 'Importieren von cURL', placeholder: 'Fügen Sie hier die cURL-Zeichenfolge ein', }, + verifySSL: 'SSL-Zertifikat überprüfen', }, code: { inputVars: 'Eingabevariablen', diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index df0bb904fd..af0c2e56df 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -542,6 +542,7 @@ const translation = { title: 'Import from cURL', placeholder: 'Paste cURL string here', }, + verifySSL: 'Verify SSL Certificate', }, code: { inputVars: 'Input Variables', diff --git a/web/i18n/es-ES/workflow.ts b/web/i18n/es-ES/workflow.ts index 580072895c..c90620a44b 100644 --- a/web/i18n/es-ES/workflow.ts +++ b/web/i18n/es-ES/workflow.ts @@ -535,6 +535,7 @@ const translation = { title: 'Importar desde cURL', placeholder: 'Pegar la cadena cURL aquí', }, + verifySSL: 'Verificar el certificado SSL', }, code: { inputVars: 'Variables de entrada', diff --git a/web/i18n/fa-IR/workflow.ts b/web/i18n/fa-IR/workflow.ts index 1f2d87a84b..8cce5c544e 100644 --- a/web/i18n/fa-IR/workflow.ts +++ b/web/i18n/fa-IR/workflow.ts @@ -537,6 +537,7 @@ const translation = { title: 'وارد کردن از cURL', placeholder: 'رشته cURL را اینجا بچسبانید', }, + verifySSL: 'گواهی SSL را تأیید کنید', }, code: { inputVars: 'متغیرهای ورودی', diff --git a/web/i18n/fr-FR/workflow.ts b/web/i18n/fr-FR/workflow.ts index 0878d18374..ad693705ee 100644 --- a/web/i18n/fr-FR/workflow.ts +++ b/web/i18n/fr-FR/workflow.ts @@ -537,6 +537,7 @@ const translation = { placeholder: 'Collez la chaîne cURL ici', title: 'Importer à partir de cURL', }, + verifySSL: 'Vérifier le certificat SSL', }, code: { inputVars: 'Variables de saisie', diff --git a/web/i18n/hi-IN/workflow.ts b/web/i18n/hi-IN/workflow.ts index 316116dc02..21471ab27c 100644 --- a/web/i18n/hi-IN/workflow.ts +++ b/web/i18n/hi-IN/workflow.ts @@ -550,6 +550,7 @@ const translation = { placeholder: 'यहां cURL स्ट्रिंग पेस्ट करें', title: 'cURL से आयात करें', }, + verifySSL: 'SSL प्रमाणपत्र की पुष्टि करें', }, code: { inputVars: 'इनपुट वेरिएबल्स', diff --git a/web/i18n/it-IT/workflow.ts b/web/i18n/it-IT/workflow.ts index 0092e25d38..7f4cf64301 100644 --- a/web/i18n/it-IT/workflow.ts +++ b/web/i18n/it-IT/workflow.ts @@ -553,6 +553,7 @@ const translation = { placeholder: 'Incolla qui la stringa cURL', title: 'Importazione da cURL', }, + verifySSL: 'Verifica Certificato SSL', }, code: { inputVars: 'Variabili di Input', diff --git a/web/i18n/ja-JP/workflow.ts b/web/i18n/ja-JP/workflow.ts index 3c959669bf..20d2e267b8 100644 --- a/web/i18n/ja-JP/workflow.ts +++ b/web/i18n/ja-JP/workflow.ts @@ -543,6 +543,7 @@ const translation = { title: 'cURL からインポート', placeholder: 'ここに cURL 文字列を貼り付けます', }, + verifySSL: 'SSL証明書を確認する', }, code: { inputVars: '入力変数', diff --git a/web/i18n/ko-KR/workflow.ts b/web/i18n/ko-KR/workflow.ts index 078d683ca2..4ad318167c 100644 --- a/web/i18n/ko-KR/workflow.ts +++ b/web/i18n/ko-KR/workflow.ts @@ -565,6 +565,7 @@ const translation = { title: 'cURL 에서 가져오기', placeholder: '여기에 cURL 문자열 붙여 넣기', }, + verifySSL: 'SSL 인증서 확인', }, code: { inputVars: '입력 변수', diff --git a/web/i18n/pl-PL/workflow.ts b/web/i18n/pl-PL/workflow.ts index ca2e95bdf6..cb45d7618b 100644 --- a/web/i18n/pl-PL/workflow.ts +++ b/web/i18n/pl-PL/workflow.ts @@ -537,6 +537,7 @@ const translation = { placeholder: 'Wklej tutaj ciąg cURL', title: 'Importowanie z cURL', }, + verifySSL: 'Zweryfikuj certyfikat SSL', }, code: { inputVars: 'Zmienne wejściowe', diff --git a/web/i18n/pt-BR/workflow.ts b/web/i18n/pt-BR/workflow.ts index 2a86228499..a811f9f4e3 100644 --- a/web/i18n/pt-BR/workflow.ts +++ b/web/i18n/pt-BR/workflow.ts @@ -537,6 +537,7 @@ const translation = { placeholder: 'Cole a string cURL aqui', title: 'Importar do cURL', }, + verifySSL: 'Verificar o certificado SSL', }, code: { inputVars: 'Variáveis de entrada', diff --git a/web/i18n/ro-RO/workflow.ts b/web/i18n/ro-RO/workflow.ts index 09282f4d1c..ccb32f1c5f 100644 --- a/web/i18n/ro-RO/workflow.ts +++ b/web/i18n/ro-RO/workflow.ts @@ -537,6 +537,7 @@ const translation = { placeholder: 'Lipiți șirul cURL aici', title: 'Importați din cURL', }, + verifySSL: 'Verifică certificatul SSL', }, code: { inputVars: 'Variabile de intrare', diff --git a/web/i18n/ru-RU/workflow.ts b/web/i18n/ru-RU/workflow.ts index b7b41562a9..65411b6e01 100644 --- a/web/i18n/ru-RU/workflow.ts +++ b/web/i18n/ru-RU/workflow.ts @@ -537,6 +537,7 @@ const translation = { placeholder: 'Вставьте сюда строку cURL', title: 'Импорт из cURL', }, + verifySSL: 'Проверить SSL-сертификат', }, code: { inputVars: 'Входные переменные', diff --git a/web/i18n/sl-SI/workflow.ts b/web/i18n/sl-SI/workflow.ts index 2dbcdb008b..2c9a72f67e 100644 --- a/web/i18n/sl-SI/workflow.ts +++ b/web/i18n/sl-SI/workflow.ts @@ -539,6 +539,7 @@ const translation = { value: 'Vrednost', params: 'Parametri', insertVarPlaceholder: 'vnesite \'/\' za vstavljanje spremenljivke', + verifySSL: 'Preverite SSL certifikat', }, code: { searchDependencies: 'Išči odvisnosti', diff --git a/web/i18n/th-TH/workflow.ts b/web/i18n/th-TH/workflow.ts index f017b5d02e..1e9afb2cbc 100644 --- a/web/i18n/th-TH/workflow.ts +++ b/web/i18n/th-TH/workflow.ts @@ -537,6 +537,7 @@ const translation = { title: 'นําเข้าจาก cURL', placeholder: 'วางสตริง cURL ที่นี่', }, + verifySSL: 'ตรวจสอบใบรับรอง SSL', }, code: { inputVars: 'ตัวแปรอินพุต', diff --git a/web/i18n/tr-TR/workflow.ts b/web/i18n/tr-TR/workflow.ts index 0c55351c21..75f57ff70f 100644 --- a/web/i18n/tr-TR/workflow.ts +++ b/web/i18n/tr-TR/workflow.ts @@ -538,6 +538,7 @@ const translation = { placeholder: 'cURL dizesini buraya yapıştırın', title: 'cURL\'den içe aktar', }, + verifySSL: 'SSL Sertifikasını Doğrula', }, code: { inputVars: 'Giriş Değişkenleri', diff --git a/web/i18n/uk-UA/workflow.ts b/web/i18n/uk-UA/workflow.ts index 110c82dc1a..3e91091ae4 100644 --- a/web/i18n/uk-UA/workflow.ts +++ b/web/i18n/uk-UA/workflow.ts @@ -537,6 +537,7 @@ const translation = { title: 'Імпорт з cURL', placeholder: 'Вставте сюди рядок cURL', }, + verifySSL: 'Перевірити SSL сертифікат', }, code: { inputVars: 'Вхідні змінні', diff --git a/web/i18n/vi-VN/workflow.ts b/web/i18n/vi-VN/workflow.ts index 7c32f39350..c4b6083ff8 100644 --- a/web/i18n/vi-VN/workflow.ts +++ b/web/i18n/vi-VN/workflow.ts @@ -537,6 +537,7 @@ const translation = { title: 'Nhập từ cURL', placeholder: 'Dán chuỗi cURL vào đây', }, + verifySSL: 'Xác thực chứng chỉ SSL', }, code: { inputVars: 'Biến đầu vào', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index aa9dcae261..4f6d78fae1 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -543,6 +543,7 @@ const translation = { title: '导入 cURL', placeholder: '粘贴 cURL 字符串', }, + verifySSL: '验证 SSL 证书', }, code: { inputVars: '输入变量', diff --git a/web/i18n/zh-Hant/workflow.ts b/web/i18n/zh-Hant/workflow.ts index 8262e60351..a6d0fb9550 100644 --- a/web/i18n/zh-Hant/workflow.ts +++ b/web/i18n/zh-Hant/workflow.ts @@ -537,6 +537,7 @@ const translation = { placeholder: '在此處粘貼 cURL 字串', title: '從 cURL 導入', }, + verifySSL: '驗證 SSL 證書', }, code: { inputVars: '輸入變量',