Skip to content

[Bug]: proxy by nginx websocket origin check error #6161

Closed
@502647092

Description

@502647092

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: EDGE
  • Local OS: Windows
  • Remote OS: Linux
  • Remote Architecture: x64
  • code-server --version: 4.12.0

Steps to Reproduce

  1. start code server by docker
  2. proxy by nginx
  3. open website

Expected

.

Actual

websocket connect error code 1006

Logs

debug host "ide.wsc.ink:443" does not match origin "ide.wsc.ink";

Screenshot/Video

No response

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions