I volontari di MDN non hanno ancora tradotto questo articolo in Italiano. Unisciti a noi e traducilo tu stesso.
Puoi anche consultare l’articolo in English (US).

The SourceMap HTTP response header links generated code to a source map, enabling the browser to reconstruct the original source and present the reconstructed original in the debugger.

Header type Response header
Forbidden header name no

Syntax

SourceMap: <url>
X-SourceMap: <url> (deprecated)

Directives

<url>
A relative (to the request URL) or absolute URL pointing to a source map file.

Examples

SourceMap: /path/to/file.js.map

Specifications

Specification Title
Draft document Source Map Revision 3 Proposal

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic support
Non-standard
Chrome Full support Yes
Prefixed
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: X-
Full support Yes
Edge ? Firefox Full support 27
Prefixed
Full support 27
Prefixed
Prefixed Implemented with the vendor prefix: X-
Full support 55
IE ? Opera ? Safari Full support Yes
Prefixed
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: X-
Full support Yes
WebView Android ? Chrome Android ? Edge Mobile ? Firefox Android Full support 27
Prefixed
Full support 27
Prefixed
Prefixed Implemented with the vendor prefix: X-
Full support 55
Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Requires a vendor prefix or different name for use.
Requires a vendor prefix or different name for use.

See also

Tag del documento e collaboratori

Hanno collaborato alla realizzazione di questa pagina: fscholz
Ultima modifica di: fscholz,