Skip to content

The first installation failed when logging into Harbor #21996

@Lawlietor

Description

@Lawlietor

Hello everyone, I encountered an account and password error when logging in after installing Harbor for the first time. When checking the request, I found that
http://192.168.10.225:7300/c/login The return data for response is {"errors": [{"code": "FORBIDDEN", "message": "origin invalid"}]}.

Later, when entering nginx conifg and setting proxy_set_header Host $http_host, the error persisted.
My current version is v2.12.3.

In harbor.yaml:
hostname: 192.168.10.225
http:
port: 7300

external_url: https://192.168.10.225:7300

harbor_admin_password: Harbor12345
password_hash_algorithm: "sha256"

Other settings have not changed

奇怪的机器翻译。如过有懂中文的大佬就好了。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    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