Skip to content

Commit

Permalink
Markdown conversion for ru - Cleanup - HTTP section (#8558)
Browse files Browse the repository at this point in the history
Fix md conversion report
  • Loading branch information
SphinxKnight authored Sep 28, 2022
1 parent 6c4b932 commit d4e7ae5
Show file tree
Hide file tree
Showing 24 changed files with 98 additions and 138 deletions.
4 changes: 0 additions & 4 deletions files/ru/web/http/basics_of_http/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,3 @@ <h2 id="Статьи">Статьи</h2>
<dt><a href="/en-US/docs/Web/HTTP/Content_negotiation">Content Negotiation</a></dt>
<dd>HTTP introduces a set of headers, starting with <code>Accept-</code> as a way for a browser to announce the format, language, or encoding it prefers. This article explains how this advertisement happens, how the server is expected to react and how it will choose the most adequate response.</dd>
</dl>

<div id="gtx-trans" style="position: absolute; left: 5px; top: 437px;">
<div class="gtx-trans-icon"></div>
</div>
2 changes: 1 addition & 1 deletion files/ru/web/http/caching/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h2 id="Цели_кеширования">Цели кеширования</h2>

<p>Запись в кеше может также состоять из множества ответов, различаемых по вторичному ключу, если при формировании ответа производится согласование данных. Подробнее об этом рассказано <a href="#Varying_responses">ниже</a>, в разделе, посвящённом заголовку {{HTTPHeader("Vary")}}.</p>

<h2 id="Управление_кешированием"><span class="long_text short_text" id="result_box" lang="ru"><span>Управление</span> </span>кеш<span class="long_text short_text" lang="ru"><span>ированием</span></span></h2>
<h2 id="Управление_кешированием">Управление кешированием</h2>

<h3 id="Заголовок_Cache-control">Заголовок <code>Cache-control</code></h3>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
---
<div>{{HTTPSidebar}}</div>

<p><span class="seoSummary">В этой статье описывается, какие значения используются в HTTP-заголовке <code><a href="/en-US/docs/Web/HTTP/Headers/Accept">Accept</a></code> по умолчанию в зависимости от конкретного запроса и версии браузера.</span></p>
<p>В этой статье описывается, какие значения используются в HTTP-заголовке <code><a href="/en-US/docs/Web/HTTP/Headers/Accept">Accept</a></code> по умолчанию в зависимости от конкретного запроса и версии браузера.</p>

<h2 id="Значения_по_умолчанию">Значения по умолчанию</h2>

Expand Down Expand Up @@ -84,7 +84,7 @@ <h2 id="Значения_для_изображений">Значения для
<code>*/*</code> (начиная с Firefox 47)<br>
<code>image/png,image/*;q=0.8,*/*;q=0.5</code> (в более ранних версиях)</p>
</td>
<td>Значение можно изменить с помощью параметра <code>image.http.accept</code>. <a class="external" href="https://hg.mozilla.org/mozilla-central/file/tip/modules/libpref/init/all.js#l4735"><span style="font-size: x-small;">исходный код</span></a></td>
<td>Значение можно изменить с помощью параметра <code>image.http.accept</code>. <a class="external" href="https://hg.mozilla.org/mozilla-central/file/tip/modules/libpref/init/all.js#l4735">исходный код</a></td>
</tr>
<tr>
<td>Safari</td>
Expand All @@ -94,7 +94,7 @@ <h2 id="Значения_для_изображений">Значения для
<tr>
<td>Chrome</td>
<td><code>image/webp,image/apng,image/*,*/*;q=0.8</code></td>
<td><a class="external" href="https://chromium.googlesource.com/chromium/src.git/+/master/content/renderer/loader/web_url_loader_impl.cc#99"><span style="font-size: x-small;">исходный код</span></a></td>
<td><a class="external" href="https://chromium.googlesource.com/chromium/src.git/+/master/content/renderer/loader/web_url_loader_impl.cc#99">исходный код</a></td>
</tr>
<tr>
<td>Internet Explorer до версии 8 включительно</td>
Expand Down Expand Up @@ -128,12 +128,12 @@ <h2 id="Значения_для_видео">Значения для видео</
<tr>
<td>Firefox начиная с версии 3.6</td>
<td><code>video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5</code></td>
<td>См. <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=489071">страницу ошибки 489071</a>. <a class="external" href="https://hg.mozilla.org/mozilla-central/file/tip/dom/html/HTMLVideoElement.cpp#l136"><span style="font-size: x-small;">исходный код</span></a></td>
<td>См. <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=489071">страницу ошибки 489071</a>. <a class="external" href="https://hg.mozilla.org/mozilla-central/file/tip/dom/html/HTMLVideoElement.cpp#l136">исходный код</a></td>
</tr>
<tr>
<td>Chrome</td>
<td><code>*/*</code></td>
<td><a class="external" href="https://chromium.googlesource.com/chromium/src.git/+/master/services/network/loader_util.cc#27"><span style="font-size: x-small;">исходный код</span></a></td>
<td><a class="external" href="https://chromium.googlesource.com/chromium/src.git/+/master/services/network/loader_util.cc#27">исходный код</a></td>
</tr>
<tr>
<td>Internet Explorer до версии 8 включительно</td>
Expand All @@ -157,12 +157,12 @@ <h2 id="Значения_для_аудиофайлов">Значения для
<tr>
<td>Firefox начиная с версии 3.6</td>
<td><code>audio/webm,audio/ogg,audio/wav,audio/*;q=0.9,application/ogg;q=0.7,video/*;q=0.6,*/*;q=0.5</code></td>
<td>См. <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=489071">страницу ошибки 489071</a>. <a class="external" href="https://hg.mozilla.org/mozilla-central/file/tip/dom/html/HTMLAudioElement.cpp#l81"><span style="font-size: x-small;">исходный код</span></a></td>
<td>См. <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=489071">страницу ошибки 489071</a>. <a class="external" href="https://hg.mozilla.org/mozilla-central/file/tip/dom/html/HTMLAudioElement.cpp#l81">исходный код</a></td>
</tr>
<tr>
<td>Safari, Chrome</td>
<td><code>*/*</code></td>
<td><a class="external" href="https://chromium.googlesource.com/chromium/src.git/+/master/services/network/loader_util.cc#27"><span style="font-size: x-small;">исходный код</span></a></td>
<td><a class="external" href="https://chromium.googlesource.com/chromium/src.git/+/master/services/network/loader_util.cc#27">исходный код</a></td>
</tr>
<tr>
<td>Internet Explorer до версии 8 включительно</td>
Expand Down Expand Up @@ -196,7 +196,7 @@ <h2 id="Значения_для_скриптов">Значения для скр
<tr>
<td>Safari, Chrome</td>
<td><code>*/*</code></td>
<td><a class="external" href="https://chromium.googlesource.com/chromium/src.git/+/master/services/network/loader_util.cc#27"><span style="font-size: x-small;">исходный код</span></a></td>
<td><a class="external" href="https://chromium.googlesource.com/chromium/src.git/+/master/services/network/loader_util.cc#27">исходный код</a></td>
</tr>
<tr>
<td>Internet Explorer до версии 8 включительно</td>
Expand Down Expand Up @@ -225,7 +225,7 @@ <h2 id="Значения_для_таблиц_стилей_CSS">Значения
<tr>
<td>Firefox 4</td>
<td><code>text/css,*/*;q=0.1</code></td>
<td>См. <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=170789">страницу ошибки 170789</a>. <a class="external" href="https://hg.mozilla.org/mozilla-central/file/tip/layout/style/Loader.cpp#l1548"><span style="font-size: x-small;">исходный код</span></a></td>
<td>См. <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=170789">страницу ошибки 170789</a>. <a class="external" href="https://hg.mozilla.org/mozilla-central/file/tip/layout/style/Loader.cpp#l1548">исходный код</a></td>
</tr>
<tr>
<td>Internet Explorer до версии 8 включительно</td>
Expand All @@ -240,7 +240,7 @@ <h2 id="Значения_для_таблиц_стилей_CSS">Значения
<tr>
<td>Safari, Chrome</td>
<td><code>text/css,*/*;q=0.1</code></td>
<td><a class="external" href="https://chromium.googlesource.com/chromium/src.git/+/master/content/renderer/loader/web_url_loader_impl.cc#98"><span style="font-size: x-small;">исходный код</span></a></td>
<td><a class="external" href="https://chromium.googlesource.com/chromium/src.git/+/master/content/renderer/loader/web_url_loader_impl.cc#98">исходный код</a></td>
</tr>
<tr>
<td>Opera 11.10</td>
Expand Down
14 changes: 0 additions & 14 deletions files/ru/web/http/cors/errors/corsmissingalloworigin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,3 @@ <h2 id="Смотрите_также">Смотрите также</h2>
<li>Глоссарий: {{Glossary("CORS")}}</li>
<li><a href="/en-US/docs/Web/HTTP/CORS">Введение в CORS</a></li>
</ul>

<div id="simple-translate">
<div>
<div class="simple-translate-button " style="height: 22px; width: 22px; top: 10px; left: 10px;"></div>

<div class="simple-translate-panel " style="width: 300px; height: 200px; top: 0px; left: 0px; font-size: 13px; background-color: rgb(255, 255, 255);">
<div class="simple-translate-result-wrapper" style="overflow: hidden;">
<p class="simple-translate-result" style="color: rgb(0, 0, 0);"></p>

<p class="simple-translate-candidate" style="color: rgb(115, 115, 115);"></p>
</div>
</div>
</div>
</div>
8 changes: 4 additions & 4 deletions files/ru/web/http/cors/errors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
---
<div>{{HTTPSidebar}}</div>

<p><span class="seoSummary"><a href="/en-US/docs/Web/HTTP/CORS">Cross-Origin Resource Sharing</a> ({{Glossary("CORS")}}) is a standard that allows a server to relax the <a href="/en-US/docs/Web/Security/Same-origin_policy">same-origin policy</a>. This is used to explicitly allow some cross-origin requests while rejecting others.</span> For example, if a site offers an embeddable service, it may be necessary to relax certain restrictions. Setting up such a CORS configuration isn't necessarily easy and may present some challenges. In these pages, we'll look into some common CORS error messages and how to resolve them.</p>
<p><a href="/en-US/docs/Web/HTTP/CORS">Cross-Origin Resource Sharing</a> ({{Glossary("CORS")}}) is a standard that allows a server to relax the <a href="/en-US/docs/Web/Security/Same-origin_policy">same-origin policy</a>. This is used to explicitly allow some cross-origin requests while rejecting others. For example, if a site offers an embeddable service, it may be necessary to relax certain restrictions. Setting up such a CORS configuration isn't necessarily easy and may present some challenges. In these pages, we'll look into some common CORS error messages and how to resolve them.</p>

<p>If the CORS configuration isn't setup correctly, the browser console will present an error like <code>"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at $somesite"</code> indicating that the request was blocked due to violating the CORS security rules. This might not necessarily be a set-up mistake, though. It's possible that the request is in fact intentionally being disallowed by the user's web application and remote external service. However, If the endpoint is meant to be available, some debugging is needed to succeed.</p>

Expand All @@ -34,12 +34,12 @@ <h2 id="Identifying_the_issue">Identifying the issue</h2>

<p>The text of the error message will be something similar to the following:</p>

<pre>Cross<span class="message-body-wrapper"><span class="message-flex-body"><span class="devtools-monospace message-body">-Origin Request Blocked: The Same Origin Policy disallows
<pre>Cross-Origin Request Blocked: The Same Origin Policy disallows
reading the remote resource at <em>https://some-url-here</em>. (<em>Reason:
additional information here</em>).</span></span></span></pre>
additional information here</em>).</pre>

<div class="note">
<p><span class="message-body-wrapper"><span class="message-flex-body"><span class="devtools-monospace message-body"><strong>Note:</strong> For security reasons, specifics about what went wrong with a CORS request <em>are not available to JavaScript code</em>. All the code knows is that an error occurred. The only way to determine what specifically went wrong is to look at the browser's console for details.</span></span></span></p>
<p><strong>Note:</strong> For security reasons, specifics about what went wrong with a CORS request <em>are not available to JavaScript code</em>. All the code knows is that an error occurred. The only way to determine what specifically went wrong is to look at the browser's console for details.</p>
</div>

<h2 id="CORS_error_messages">CORS error messages</h2>
Expand Down
Loading

0 comments on commit d4e7ae5

Please sign in to comment.