square-napkin-92357
06/04/2025, 9:00 AMcurl --request GET \
--url '<http://127.0.0.1:4455/kratos/self-service/recovery/browser?refresh=true>' \
--header 'accept: application/json' \
--header 'content-type: application/json'
2. Send code to email
curl --request POST \
--url '<http://127.0.0.1:4455/kratos/self-service/recovery?flow={{recoveryFlowId}}>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'cookie: {{recoveryFlowCookie}}' \
--cookie '{{recoveryFlowCookie}}' \
--data '{
"csrf_token": "{{recoveryFlowCsrf}}",
"method": "code",
"email": "<mailto:example@gmail.com|example@gmail.com>"
}'
3. Get setting flow
curl --request POST \
--url '<http://127.0.0.1:4455/kratos/self-service/recovery?flow={{recoveryFlowId}}>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'cookie: {{recoveryFlowCookie}}' \
--cookie '{{recoveryFlowCookie}}' \
--data '{
"csrf_token": "{{recoveryFlowCsrf}}",
"method": "code",
"code": "268155"
}'
4. Change password
curl --request POST \
--url '<http://127.0.0.1:4455/kratos/self-service/settings?flow={{settingFlowId}}>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'cookie: {{oryKratosSession}};{{settingFlowCookie}}' \
--cookie '{{oryKratosSession}};{{settingFlowCookie}}' \
--data '{
"csrf_token": "{{settingFlowCsrf}}",
"method": "password",
"password": "123SupperPassword2025$"
}'
All steps work well in my local machine (docker compose)
But when I deploy on k9s, step 3 gets the response is
{
"error": {
"id": "browser_location_change_required",
"code": 422,
"status": "Unprocessable Entity",
"reason": "In order to complete this flow please redirect the browser to: <https://www.ory.sh/kratos/docs/fallback/settings?flow=d596e88c-f173-426a-86b5-79ff07e85e27>",
"message": "browser location change required"
},
"redirect_browser_to": "<https://www.ory.sh/kratos/docs/fallback/settings?flow=d596e88c-f173-426a-86b5-79ff07e85e27>"
}
please suggest me how to fix, thanks all!bland-eye-99092
06/04/2025, 11:31 AMsquare-napkin-92357
06/05/2025, 2:48 AMdocker compose
work well. I use all the same configbland-eye-99092
06/05/2025, 11:57 AMbland-eye-99092
06/05/2025, 11:57 AM