Javascript sourcemaps should be served with Conent-type: application/json
since the file is single JSON object.
To supply source map over HTTP, use SourceMap: <url>
header.
Or you can link source map in file comment for both, javascript (//# sourceMappingURL=<url>
) and css (/*# sourceMappingURL=<url> */
).
Note: X-SourceMap <url>
is deprecated.
Source: Source Map Revision 3 Proposal