Skip to content

[Bug]: Codicon font does not load behind apache rev proxy. #6305

Description

@SeeJayEmm

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Firefox 114.0.2
  • Local OS: Windows 10
  • Remote OS: Ubuntu 22.04.2 LTS
  • Remote Architecture: amd64
  • code-server --version: 4.14.1 5c19962 with Code 1.79.2

Steps to Reproduce

  1. Access code-server from behind an Apache reverse proxy.

Expected

Codicon font should load allowing for display of the UI elements dependent on it.

Actual

Font fails to load. UI icons are replaced with hex squares.

The font loads properly when accessed directly (bypass proxy) using the same browser.

Logs

Browser console log (fqdn has been obfuscated).

downloadable font: bad table directory searchRange (font-family: "codicon" style:normal weight:400 stretch:100 src index:0) source: https://vscode.domain.tld/stable-695af097c7bd098fbf017ce3ac85e09bbc5dda06/static/out/vs/base/browser/ui/codicons/codicon/codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6

downloadable font: bad table directory entrySelector (font-family: "codicon" style:normal weight:400 stretch:100 src index:0) source: https://vscode.domain.tld/stable-695af097c7bd098fbf017ce3ac85e09bbc5dda06/static/out/vs/base/browser/ui/codicons/codicon/codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6

downloadable font: bad table directory rangeShift (font-family: "codicon" style:normal weight:400 stretch:100 src index:0) source: https://vscode.domain.tld/stable-695af097c7bd098fbf017ce3ac85e09bbc5dda06/static/out/vs/base/browser/ui/codicons/codicon/codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6

downloadable font: 0GSU: invalid table offset (font-family: "codicon" style:normal weight:400 stretch:100 src index:0) source: https://vscode.domain.tld/stable-695af097c7bd098fbf017ce3ac85e09bbc5dda06/static/out/vs/base/browser/ui/codicons/codicon/codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6

downloadable font: rejected by sanitizer (font-family: "codicon" style:normal weight:400 stretch:100 src index:0) source: https://vscode.domain.tld/stable-695af097c7bd098fbf017ce3ac85e09bbc5dda06/static/out/vs/base/browser/ui/codicons/codicon/codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6

Screenshot/Video

image

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

So far all other tested functionality behind the Apache proxy is working except for this one display issue. I've hit a wall trying to figure out why the font is failing to load.

Relevant portions of my apache config:

    # Configure rev proxy.
    ProxyRequests           Off
    ProxyPass               /       https://vscode.intdomain.tld/ upgrade=websocket
    ProxyPassReverse        /       https://vscode.intdomain.tld/
    ProxyPassReverseCookieDomain    vscode.intdomain.tld      vscode.domain.tld

    ProxyPreserveHost       On
    ProxyHTMLEnable         On
    ProxyHTMLMeta           On
    ProxyHTMLExtended       On
    RequestHeader           unset   Accept-Encoding
    ProxyHTMLURLMap         https://vscode.intdomain.tld/ /

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions