This page was translated from English by the community. Learn more and join the MDN Web Docs community.
SourceMap
 
 
 
 Baseline
 
 Widely available
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020년 1월.
SourceMap HTTP 응답 헤더는 생성된 코드를 소스맵에 연결해서, 브라우저가 원본 소스를 재구성하여 디버거에서 재구성된 원본을 표시할 수 있도록 합니다.
| Header type | Response header | 
|---|---|
| Forbidden header name | no | 
문법
http
SourceMap: <url>
X-SourceMap: <url> (deprecated)
지시자
- <url>
 - 
소스 맵 파일을 가리키는 상대적인 URL(요청한 URL 기준) 또는 절대 URL입니다.
 
예제
http
SourceMap: /path/to/file.js.map
명세
| Specification | 
|---|
| Source map format specification> # sec-linking-http-header>  | 
 
브라우저 호환성
Loading...