A sourcemap is a mapping between the generated/transpiled/minified JS file and one or more source files. The primary objective of SourceMap is to help with debugging.

Suppose the browser is requesting a SourceMap for Jira, and Jira thinks that it's not needed. In that case, Jira won't provide the sourcemap requested, which will create a warning in the browser console reporting that "DevTools failed to load SourceMap".

 

Environment

Jira 7 and later

Diagnosis

For security reasons, we don't expose SourceMaps when avoidable.

If the browser requests a SourceMap for Jira, and Jira assumes that it's not needed, Jira won't provide the sourcemap requested. It may come with a 404 or 503 HTTP status code:

DevTools failed to load source map: Could not load content for <<LOCATION/FILE.js.map>>: HTTP error: status code 503, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for <<LOCATION/FILE.js.map>>: HTTP error: status code 404, net::ERR+UNKNOWN_URL_SCHEME

This behaviour happens to many other websites. For example, you can open www.google.com, and if your browser requests a sourcemap, you probably will face the same warning there.

 Therefore, it's only a warning coming from your browser saying that Jira opted to don't expose this information.

Cause

For security reasons, we don't expose SourceMaps when avoidable.

Solution

Suppose these JS errors are no impacting you and it's only your browsers warning you that Jira is not sharing/exposing the sourcemaps (for security reasons). In that case, we will suggest filtering out the console noise using the browsers built-in filters (using the `-` exclusion, for example), probably "-statlas" would work.

If you are using Google Chrome:

  1. Go to the developer tools (F12 in the browser);
  2. Select the Cogwheel in the upper right corner;
  3. In the Preferences tab (left) look for Sources;
  4. Disable the options: "Enable javascript source maps" "Enable CSS source maps"

 

Răspunsul a fost util? 0 utilizatori au considerat informația utilă (0 Voturi)