- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这个问题asked来自 coderss但是重新启动计算机似乎无效。
422
您请求的更改被拒绝。
确保您可以访问您尝试更改的内容。
如果您认为这是一个错误,请联系您的 GitLab 管理员。
我在 Linux 下的 Firefox 中出现上述错误,但我可以在 Chromium 中访问。
这看起来像典型的 cookie 问题。
我尝试清除所有与 Gitlab 相关的 cookie,然后在没有任何新登录尝试的情况下重新启动计算机。并重新启动计算机 :) 是的,我只是尝试
但仍然是同样的错误,同样的浏览器。
我该如何处理这个问题?
此错误也发生在忘记密码部分和 Firefox 的私有(private)选项卡中。
是否有另一个与 Gitlab 相关的 cookie?
最佳答案
紧随其后的是 issue 35447和 issue 40898 .
最后一项包括:
Ok, I suspect the issue here for many people is that the GitLab session cookie is set to Secure here: https://gitlab.com/gitlab-org/gitlab-ce/blob/9c491bc628f5a72424b82bb01e2457150bf2e71c/config/initializers/session_store.rb#L25
Setting the right SSL headers fixes the problem.
If, for some reason, the connection doesn't appear to be an HTTPS connection, Rails won't send a cookie, and the client won't be able to login. You may be able to confirm this by checking the response headers in the
GET /users/sign_in
endpoint: if you see a_gitlab_session
cookie being sent the first time you load the page, then things are working properly.
JuKuJuKu @JuKu · 1 year ago
Add these line to your frontend: reqadd X-Forwarded-Proto:\ http
After this change, it worked for me.
The group had internal availability, while one of it's projects was public (not the one I was having so much trouble with, which was private).
Making the group public solved the problem.
I checked my updates diary, but only zoom matches between Firefox access time successfully.
I pretty sure this was related to GitLab login code. Suspicious dates (Jan 6- Jan 21 and Feb 3- Feb 6).
I think This update done by GitLab the dates between Feb 3- Feb 6.
关于cookies - Gitlab 帐户访问错误 : "422 The change you requested was rejected.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65821162/
我是一名优秀的程序员,十分优秀!