white-article-28775
08/02/2022, 10:56 AM/admin/session/.../extend
, with the following details:
{
"docs": "<https://www.ory.sh/kratos/docs/debug/csrf>",
"hint": "The anti-CSRF cookie was found but the CSRF token was not included in the HTTP request body (csrf_token) nor in the HTTP Header (X-CSRF-Token).",
"reject_reason": "The HTTP Cookie Header was set and a CSRF token was sent but they do not match. We recommend deleting all cookies for this domain and retrying the flow."
}
This is self hosted kratos.
I am so confused, other routes work as expected, any idea?aloof-night-85159
08/02/2022, 1:24 PMcsrf_token
in the form. When creating the form, you should create a hidden field with that name and the value that Kratos provides in the nodes section.white-article-28775
08/02/2022, 1:28 PMwhite-article-28775
08/02/2022, 1:29 PMV0alpha2Api.adminExtendSession(id: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Session>>
aloof-night-85159
08/02/2022, 1:31 PMwhite-article-28775
08/02/2022, 1:40 PMred-machine-69654
08/02/2022, 2:33 PMPATCH
. Can you try the curl example to see if it works with sdk?red-machine-69654
08/02/2022, 2:35 PMechoing-caravan-91564
08/02/2022, 3:25 PMwhite-article-28775
08/02/2022, 3:27 PM@ory/client
and @ory/integrations
on npmechoing-caravan-91564
08/02/2022, 3:27 PMwhite-article-28775
08/02/2022, 3:28 PMory.adminExtendSession(sessionId)
echoing-caravan-91564
08/03/2022, 4:01 PMory
?white-article-28775
08/03/2022, 4:02 PM@ory/integrations
, i did the same thing as in the nextjs examleechoing-caravan-91564
08/03/2022, 4:17 PMwhite-article-28775
08/03/2022, 4:21 PMwhite-article-28775
08/03/2022, 4:23 PMconst edgeConfig = {
basePath: "/api/.ory",
baseOptions: {
withCredentials: true
}
};
echoing-caravan-91564
08/03/2022, 4:27 PMechoing-caravan-91564
08/03/2022, 4:27 PMwhite-article-28775
08/03/2022, 4:28 PMechoing-caravan-91564
08/03/2022, 4:30 PMwhite-article-28775
08/03/2022, 4:30 PMwhite-article-28775
08/03/2022, 4:30 PMechoing-caravan-91564
08/03/2022, 4:30 PM