aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/http/headers/feature-policy/accelerometer/index.html
blob: 370adce84cbb16144d232cbfaef9338ff2652324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
title: 'Feature-Policy: accelerometer'
slug: Web/HTTP/Headers/Feature-Policy/accelerometer
tags:
  - Accéléromètre
  - Directive
  - Feature Policy
  - Feature-Policy
  - HTTP
  - Reference
translation_of: Web/HTTP/Headers/Feature-Policy/accelerometer
---
<p>{{HTTPSidebar}} {{SeeCompatTable}}</p>

<p>La directive <code>accelerometer</code> de l'en-tête HTTP {{HTTPHeader('Feature-Policy')}} contrôle la possibilité pour le document courant de recueillir des informations à propos de l'accélération de l'appareil au moyen de l'interface {{domxref('Accelerometer')}}.</p>

<h2 id="Syntaxe">Syntaxe</h2>

<pre class="notranslate">Feature-Policy: accelerometer &lt;listePermissions&gt;;</pre>

<dl>
 <dt>&lt;listePermissions&gt;</dt>
 <dd>{{page('fr/Web/HTTP/Feature_Policy/Using_Feature_Policy', 'allowlist')}}</dd>
</dl>

<h2 id="Valeur_par_défaut">Valeur par défaut</h2>

<p>La valeur par défaut est <code>'self'</code>.</p>

<h2 id="Spécifications">Spécifications</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Spécification</th>
   <th scope="col">État</th>
   <th scope="col">Commentaire</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('Feature Policy')}}</td>
   <td>{{Spec2('Feature Policy')}}</td>
   <td>Définition initiale.</td>
  </tr>
  <tr>
   <td>{{SpecName('Accelerometer','#accelerometer-interface','Accelerometer')}}</td>
   <td>{{Spec2('Accelerometer')}}</td>
   <td></td>
  </tr>
 </tbody>
</table>

<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>

<p>{{Compat('http.headers.Feature-Policy.accelerometer')}}</p>

<h2 id="Voir_aussi">Voir aussi</h2>

<ul>
 <li>en-tête {{HTTPHeader('Feature-Policy')}}</li>
 <li><a href="/en-US/docs/Web/HTTP/Feature_Policy">Feature Policy</a></li>
 <li><a href="/en-US/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy">Utiliser Feature Policy</a></li>
</ul>