Skip to content

Commit

Permalink
Mark “Feature-Policy: sync-xhr” deprecated
Browse files Browse the repository at this point in the history
whatwg/xhr#322 removed the “sync-xhr”
policy-controlled feature from XHR spec — so this change adds a
Deprecated header to the “Feature-Policy: sync-xhr”, and removes the
Specifications table (since it’s no longer in the spec).
  • Loading branch information
sideshowbarker committed Mar 26, 2021
1 parent 68f7ade commit 4130eb7
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions files/en-us/web/http/headers/feature-policy/sync-xhr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- Reference
- XMLHttpRequest
---
<p>{{HTTPSidebar}} {{SeeCompatTable}}</p>
<p>{{Deprecated_header}}</p>

<p>The HTTP {{HTTPHeader("Feature-Policy")}} header <code>sync-xhr</code> directive controls whether the current document is allowed to make synchronous {{domxref("XMLHttpRequest")}} requests.</p>

Expand All @@ -26,30 +26,6 @@ <h2 id="Default_policy">Default policy</h2>

<p>By default the policy is set to <code>*</code>, which means synchronous requests are allowed in all frames.</p>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
<thead>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName("Feature Policy")}}</td>
<td>{{Spec2("Feature Policy")}}</td>
<td>Initial definition.</td>
</tr>
<tr>
<td><a href="https://xhr.spec.whatwg.org/#feature-policy-integration">WHATWG Spec</a></td>
<td></td>
<td>Default policy is <code>*</code>.</td>
</tr>
</tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<div class="hidden">
Expand Down

0 comments on commit 4130eb7

Please sign in to comment.