{"id":830,"date":"2021-02-18T17:09:09","date_gmt":"2021-02-18T09:09:09","guid":{"rendered":"http:\/\/xlight.me\/blog\/?p=830"},"modified":"2021-02-18T17:21:35","modified_gmt":"2021-02-18T09:21:35","slug":"gitlab-%e7%99%bb%e9%99%86%e6%8f%90%e7%a4%ba-422-the-change-you-requested-was-rejected","status":"publish","type":"post","link":"https:\/\/xlight.me\/blog\/2021\/02\/gitlab-%e7%99%bb%e9%99%86%e6%8f%90%e7%a4%ba-422-the-change-you-requested-was-rejected\/","title":{"rendered":"gitlab \u767b\u9646\u63d0\u793a 422 The change you requested was rejected."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u641c\u7d22\u4e86\u5404\u79cd gitlab 422 \u548c csrf \u76f8\u5173\u7684\u4fe1\u606f\uff0c\u90fd\u65e0\u6cd5\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u540e\u6765\u67e5\u65e5\u5fd7\u53d1\u73b0\u670d\u52a1\u5668\u65f6\u95f4\u4e0d\u5bf9\uff0c\u503c\u5f97\u6000\u7591\u3002\u66f4\u65b0\u4e86\u670d\u52a1\u5668\u65f6\u95f4\u540e\uff0c422\u6d88\u5931\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bb0\u5f55\u4e00\u4e0b\uff0c\u5907\u67e5\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u771f\u662f\u3002\u3002\u6298\u817e\u4e86\u597d\u4e45nginx\u8f6c\u53d1\u7684http header\uff0c\u767d\u8d39\u529b\u6c14\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/xlight.me\/blog\/wp-content\/uploads\/2021\/02\/image-4.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"blob:http:\/\/xlight.me\/795e6b03-7387-404c-9721-de17c32a5b31\"><img decoding=\"async\" src=\"https:\/\/xlight.me\/blog\/wp-content\/uploads\/2021\/02\/image-3.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Can&#8217;t verify CSRF token authenticity.<\/li><li>Completed 422 Unprocessable Entity in 143ms (ActiveRecord: 1.1ms)<\/li><li>ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u641c\u7d22\u4e86\u5404\u79cd gitlab 422 \u548c csrf \u76f8\u5173\u7684\u4fe1\u606f\uff0c\u90fd\u65e0\u6cd5\u89e3\u51b3\u95ee\u9898\u3002 \u540e\u6765\u67e5\u65e5\u5fd7\u53d1\u73b0\u670d\u52a1\u5668\u65f6\u95f4\u4e0d\u5bf9\uff0c\u503c\u5f97\u6000\u7591\u3002\u66f4\u65b0\u4e86\u670d\u52a1\u5668\u65f6\u95f4\u540e\uff0c422\u6d88\u5931\u4e86\u3002 \u8bb0\u5f55\u4e00\u4e0b\uff0c\u5907\u67e5\u3002 \u771f\u662f\u3002\u3002\u6298\u817e\u4e86\u597d\u4e45nginx\u8f6c\u53d1\u7684http header\uff0c\u767d\u8d39\u529b\u6c14\u3002 Can&#8217;t verify CSRF token authenticity.Completed 422 Unprocessable Entity in 143ms (ActiveRecord: 1.1ms)ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-830","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/posts\/830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/comments?post=830"}],"version-history":[{"count":3,"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/posts\/830\/revisions"}],"predecessor-version":[{"id":839,"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/posts\/830\/revisions\/839"}],"wp:attachment":[{"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/media?parent=830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/categories?post=830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/tags?post=830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}