aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/http/headers/upgrade-insecure-requests/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:52 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:52 -0500
commit074785cea106179cb3305637055ab0a009ca74f2 (patch)
treee6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/pt-br/web/http/headers/upgrade-insecure-requests/index.html
parentda78a9e329e272dedb2400b79a3bdeebff387d47 (diff)
downloadtranslated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz
translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2
translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip
initial commit
Diffstat (limited to 'files/pt-br/web/http/headers/upgrade-insecure-requests/index.html')
-rw-r--r--files/pt-br/web/http/headers/upgrade-insecure-requests/index.html72
1 files changed, 72 insertions, 0 deletions
diff --git a/files/pt-br/web/http/headers/upgrade-insecure-requests/index.html b/files/pt-br/web/http/headers/upgrade-insecure-requests/index.html
new file mode 100644
index 0000000000..443d8d2d5f
--- /dev/null
+++ b/files/pt-br/web/http/headers/upgrade-insecure-requests/index.html
@@ -0,0 +1,72 @@
+---
+title: Upgrade-Insecure-Requests
+slug: Web/HTTP/Headers/Upgrade-Insecure-Requests
+translation_of: Web/HTTP/Headers/Upgrade-Insecure-Requests
+---
+<div>{{HTTPSidebar}}</div>
+
+<p>O cabeçalho HTTP <strong><code>Upgrade-Insecure-Requests</code></strong> envia um sinal ao servidor expressando a preferência do cliente por uma resposta criptografada e autenticada, e podendo manipular com êxito a diretiva {{CSP("upgrade-insecure-requests")}} <a href="/en-US/docs/Web/Security/CSP">CSP</a>.</p>
+
+<p> </p>
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th scope="row">Header type</th>
+ <td>{{Glossary("Request header")}}</td>
+ </tr>
+ <tr>
+ <th scope="row">{{Glossary("Forbidden header name")}}</th>
+ <td>no</td>
+ </tr>
+ </tbody>
+</table>
+
+<p> </p>
+
+<h2 id="Syntaxe">Syntaxe</h2>
+
+<pre class="syntaxbox">Upgrade-Insecure-Requests: 1</pre>
+
+<h2 id="Exemplos">Exemplos</h2>
+
+<p><span id="result_box" lang="pt"><span>Um cliente solicita ao servidor que ele faça o suporte aos mecanismos de upgrade de {{CSP ("upgrade-insecure-requests")}}:</span></span></p>
+
+<pre>GET / HTTP/1.1
+Host: example.com
+Upgrade-Insecure-Requests: 1</pre>
+
+<p><span id="result_box" lang="pt"><span>O servidor agora pode redirecionar para uma versão segura do site.</span> <span>Um cabeçalho {{HTTPHeader ("Vary")}} pode ser usado para que o site não seja veiculado por caches à clientes que não oferecem suporte ao mecanismo de upgrade.</span></span></p>
+
+<pre>Local: https://example.com/
+Vary: Upgrade-Insecure-Requests</pre>
+
+<h2 id="Especificações">Especificações</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Especificação</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comentário</th>
+ </tr>
+ <tr>
+ <td>{{specName("Upgrade Insecure Requests", "#preference", "upgrade-insecure-requests")}}</td>
+ <td>{{Spec2('Upgrade Insecure Requests')}}</td>
+ <td>Initial definition.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Compatibilidade_do_Navegador">Compatibilidade do Navegador</h2>
+
+<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+
+<p>{{Compat("http.headers.Upgrade-Insecure-Requests")}}</p>
+
+<h2 id="Veja_também">Veja também:</h2>
+
+<ul>
+ <li>{{HTTPHeader("Content-Security-Policy")}}</li>
+ <li>CSP {{CSP("upgrade-insecure-requests")}} directive</li>
+</ul>