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
奇怪的机器翻译。如过有懂中文的大佬就好了。
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
奇怪的机器翻译。如过有懂中文的大佬就好了。