blob: c97cce2865df6076f7284892a022d7abdaf04031 (
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
|
---
title: SourceMap
slug: Web/HTTP/Headers/SourceMap
translation_of: Web/HTTP/Headers/SourceMap
---
<div> {{HTTPSidebar}}</div>
<p>The <strong><code>SourceMap</code></strong> <a href="/en-US/docs/Web/HTTP">HTTP</a> response header links generated code to a <a href="/en-US/docs/Tools/Debugger/How_to/Use_a_source_map">source map</a>, enabling the browser to reconstruct the original source and present the reconstructed original in the debugger.</p>
<table class="properties">
<tbody>
<tr>
<th scope="row">Header type</th>
<td>{{Glossary("Response header")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name")}}</th>
<td>no</td>
</tr>
</tbody>
</table>
<h2 id="Sintaxe">Sintaxe</h2>
<pre class="syntaxbox">SourceMap: <url>
X-SourceMap: <url> (deprecated)
</pre>
<h3 id="Diretivas">Diretivas</h3>
<dl>
<dt><code><url></code></dt>
<dd>A relative (to the request URL) or absolute URL pointing to a source map file.</dd>
</dl>
<h2 id="Exemplos">Exemplos</h2>
<pre>SourceMap: /path/to/file.js.map</pre>
<h2 id="Especificações">Especificações</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">Especificação</th>
<th scope="col">Titulo</th>
</tr>
<tr>
<td><a href="https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k">Draft document</a></td>
<td>Source Map Revision 3 Proposal</td>
</tr>
</tbody>
</table>
<h2 id="Browser_compatibility">Compatibilidade com navegadores</h2>
<p>{{Compat("http.headers.SourceMap")}}</p>
<h2 id="Veja_Também">Veja Também</h2>
<ul>
<li><a href="/en-US/docs/Tools/Debugger/How_to/Use_a_source_map">Firefox Developer Tools: using a source map</a></li>
</ul>
|