After passing the csrf_token to the request `<http...
# talk-kratos
r
After passing the csrf_token to the request
<http://localhost:4433/self-service/registration/methods/password?flow=928cc4cf-50b5-4d54-9924-4ab148fe7bcb>
(see screenshot), I am still having an error regarding the missing csrf_token. Here is the log that kratos gives me :
Copy code
{
  "audience": "audit",
  "error": {
    "debug": "",
    "message": "The requested action was forbidden",
    "reason": "A request failed due to a missing or invalid csrf_token value.",
    "status": "Forbidden",
    "status_code": 403
  },
  "http_request": {
    "headers": {
      "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
      "accept-encoding": "gzip, deflate, br",
      "accept-language": "en-US,en;q=0.9",
      "cache-control": "max-age=0",
      "cookie": "csrf_token=bIE1%2FCEYqiOj4cvX3%2FFVZQm57LmPMZM3R%2BnFa0njVewz9TVNKJ4p7DJy3gYbxxSReBrRrCb%2BxKIxX%2FkDrspLBw%3D%3D",
      "origin": "<http://localhost:3000>",
      "referer": "<http://localhost:3000/>",
      "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36"
    },
    "host": "localhost:4433",
    "method": "POST",
    "path": "/self-service/registration/methods/password",
    "query": "flow=5972de8d-0a48-432a-93e2-9fc249a08582",
    "remote": "172.20.0.1:58286",
    "scheme": "http"
  },
  "level": "info",
  "msg": "Encountered self-service flow error.",
  "registration_flow": {
    "id": "5972de8d-0a48-432a-93e2-9fc249a08582",
    "type": "browser",
    "expires_at": "2021-03-04T08:08:24.780318Z",
    "issued_at": "2021-03-04T07:58:24.780318Z",
    "request_url": "<http://127.0.0.1:4433/self-service/registration/browser>",
    "messages": null,
    "methods": {
      "password": {
        "method": "password",
        "config": {
          "action": "<http://localhost:4433/self-service/registration/methods/password?flow=5972de8d-0a48-432a-93e2-9fc249a08582>",
          "method": "POST",
          "fields": [
            {
              "name": "csrf_token",
              "type": "hidden",
              "required": true,
              "value": ""
            },
            {
              "name": "password",
              "type": "password",
              "required": true
            },
            {
              "name": "traits.email",
              "type": "email",
              "value": "a@a.a"
            },
            {
              "name": "traits.name.first",
              "type": "text",
              "value": "a"
            },
            {
              "name": "traits.name.last",
              "type": "text",
              "value": "a"
            }
          ]
        }
      }
    }
  },
  "service_name": "ORY Kratos",
  "service_version": "v0.5.5-alpha.1",
  "time": "2021-03-04T07:58:49Z"
}
Someone has any hints?