Skip to content

局域网无法访问吗? #2688

@Luckyu920

Description

@Luckyu920

Describe the bug

我是在虚拟机中部署的,部署后,虚拟机可以正常使用,但是宿主机访问虚拟机IP和端口时,能正常访问前端(WEB页面),但是登录时有问题,显示登录失败,我的密码是正确的,估计无法与后端通信。之后把ALLOWED_ORIGINS=localhost改为ALLOWED_ORIGINS=*后,能提示欢迎回来,跳转到仪表盘页面后,瞬间又回到登录界面。

Reproduction

reproduction

System Info

System:
    OS: Linux 6.17 Ubuntu 24.04.3 LTS 24.04.3 LTS (Noble Numbat)
    CPU: (2) x64 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz
    Memory: 956.36 MB / 3.78 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 22.21.1 - /root/.nix-profile/bin/node
    Yarn: 1.22.22 - /root/.nix-profile/bin/yarn
    npm: 6.13.4 - /root/.nvm/versions/node/v12.16.1/bin/npm
  Browsers:
    Firefox: 141.0
    Firefox Developer Edition: 141.0


{"name":"@mx-space/core","author":"Innei <https://innei.in>","version":"12.0.1","homepage":"https://github.com/mx-space/core/tree/master/apps/core#readme","issues":"https://github.com/mx-space/core/issues"}

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions