FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    431 Request Header Fields Too Large error (almost 100 fusionauth.known-device cookies)

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    5
    2.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 0
      05.years_tourer
      last edited by

      While using the hosted login page, I started receiving a 431 HTTP error, indicating my header is too large. When I took a look at the header, I noticed I had almost 100 fusionauth.known-device.* cookies.

      The documentation for Hosted Login page Cookies just says more than one of these known device cookies might be set.

      Is there a configuration value I overlooked to limit the number of fusionauth.known-device.* cookies? My request only had two cookies not associated with FusionAuth, and both have relatively short values (UUIDs), so I am pretty sure the problem lies with my FusionAuth instance.

      I'm using the fusionauth/fusionauth-app:1.49.2 Docker image. Thanks in advance for any help.

      mark.robustelliM 1 Reply Last reply Reply Quote 0
      • mark.robustelliM
        mark.robustelli @05.years_tourer
        last edited by

        @05-years_tourer have you tried to clear you cache and try again?

        0 1 Reply Last reply Reply Quote 0
        • 0
          05.years_tourer @mark.robustelli
          last edited by

          @mark-robustelli deleting the cookie fixes the symptom, but I'm looking to address the root cause. I don't want users to see a 431 error.

          mark.robustelliM 1 Reply Last reply Reply Quote 0
          • mark.robustelliM
            mark.robustelli @05.years_tourer
            last edited by

            @05-years_tourer So there is no configuration value but you can check out this and see if there is a strategy that will work for you.
            Device Limiting with FusionAuth.

            0 1 Reply Last reply Reply Quote 0
            • 0
              05.years_tourer @mark.robustelli
              last edited by

              @mark-robustelli thanks for the documentation link. I used a version of the "Logout Requirements" example to redirect to an endpoint that removes any fusionauth.known-device.* cookies before redirecting back to the application.

              Do you think the Hosted Backend should remove fusionauth.known-device.* cookies when it removes the other tokens, at least in the case where fusionauth.remember-device is false?

              Otherwise, it seems certain we will hit the HTTP 431 error whenever an application is accessed on a shared device with ~100 users. Or is the Hosted Backend not something FusionAuth envisions people using in production?

              1 Reply Last reply Reply Quote 0
              • First post
                Last post