Source Code Viewer Shows No Content

Fix an empty source code viewer when selecting Show source code.

Symptom

You right-click an object and select Show source code, but the Legend panel shows nothing, shows an error, or shows “Source code not available”.

Likely causes

Cause How to confirm
Source code viewer not configured Admin Center → Source Code Viewer shows no path configured
Path mapping incorrect The path in the configuration does not match the actual file location
HTTP header restriction Browser console shows a blocked request (CSP or X-Frame-Options error)
Source files not accessible The server cannot reach the path where source files are stored

Resolution

Configure the source code viewer

If the viewer is not configured, set it up. See Set up the source code viewer.

Fix the path mapping

Check that the file path prefix in the configuration matches the actual location of the source files on the server.

[TODO: Where to find and edit the path mapping in the Admin Center]

Fix HTTP headers

If the browser console shows a blocked request, update the HTTP header configuration.

See Set up the source code viewer — Configure HTTP headers.