From c4d0c92d72f7a1f3f752eeb03af726854a2151d7 Mon Sep 17 00:00:00 2001 From: Lidiya <34947536+povar163@users.noreply.github.com> Date: Sun, 5 Jan 2020 15:54:21 +0400 Subject: [PATCH] Improved RU translate (#37641) --- ...s-your-site-via-https-only-with-helmet.hsts.russian.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/russian/06-information-security-and-quality-assurance/information-security-with-helmetjs/ask-browsers-to-access-your-site-via-https-only-with-helmet.hsts.russian.md b/curriculum/challenges/russian/06-information-security-and-quality-assurance/information-security-with-helmetjs/ask-browsers-to-access-your-site-via-https-only-with-helmet.hsts.russian.md index 466f43e0a7..00cf1bdee4 100644 --- a/curriculum/challenges/russian/06-information-security-and-quality-assurance/information-security-with-helmetjs/ask-browsers-to-access-your-site-via-https-only-with-helmet.hsts.russian.md +++ b/curriculum/challenges/russian/06-information-security-and-quality-assurance/information-security-with-helmetjs/ask-browsers-to-access-your-site-via-https-only-with-helmet.hsts.russian.md @@ -11,8 +11,8 @@ localeTitle: Попросите Браузеры получить доступ ## Instructions
-Configure helmet.hsts() to use HTTPS for the next 90 days. Pass the config object {maxAge: timeInMilliseconds, force: true}. Glitch already has hsts enabled. To override its settings you need to set the field "force" to true in the config object. We will intercept and restore the Glitch header, after inspecting it for testing. -Note: Configuring HTTPS on a custom website requires the acquisition of a domain, and a SSL/TSL Certificate. +Сконфигурируйте helmet.hsts() для использования HTTPS в течение следующих 90 дней. Передайте объект конфигурации {maxAge: timeInMilliseconds, force: true}. Glitch уже имеет hsts включенным. Чтобы переопределить его настройки, вам нужно установить в поле «force» значение true в объекте config. Мы перехватим и восстановим заголовок Glitch после проверки его на предмет тестирования. +Примечание. Настройка HTTPS на пользовательском веб-сайте требует приобретения домена и сертификата SSL/TSL.
## Tests @@ -20,9 +20,9 @@ Note: Configuring HTTPS on a custom website requires the acquisition of a domain ```yml tests: - - text: Средство шлема helmet.hsts () должно быть правильно установлено + - text: Средство helmet.hsts() должно быть правильно установлено testString: 'getUserInput => $.get(getUserInput("url") + "/_api/app-info").then(data => { assert.include(data.appStack, "hsts"); assert.property(data.headers, "strict-transport-security"); }, xhr => { throw new Error(xhr.responseText); })' - - text: maxAge должно быть равно 7776000 мс (90 дней) + - text: maxAge должно быть равно 7776000 мс(90 дней) testString: 'getUserInput => $.get(getUserInput("url") + "/_api/app-info").then(data => { assert.match(data.headers["strict-transport-security"], /^max-age=7776000;?/); }, xhr => { throw new Error(xhr.responseText); })' ```