Gitlab sigin in and redirect to a 422 page

137 Views Asked by At

I just install a new gitlab-ce instance. I set the property [external_url] 'https://xxxxx' a https protocol,but I did not enable the ssl. So I visite the https://xxxx and it can sigin in. But the browser tell me this site is insecurity.So I edit the property [external_url] to 'http://xxxx' to a http protocol. Then I visite http://xxxx and sigin in. But it redirect to a 422 page.

I try to sync the server time. But it is not the problem.

2

There are 2 best solutions below

0
On

422 status indicates that you didn't add form details rightly

0
On

I fix it. The problem is the cookies of https://xxxx make http://xxxx redirect to a 422 page. So I visite https://xxxx again and open the devtools and delete the cookies. Then return to http://xxxx. It works