Getting error “exceeded available parameter key space”?

前端 未结 2 1777
逝去的感伤
逝去的感伤 2021-01-04 13:13

In my rails application, after form post, getting error exceeded available parameter key space. there are too many form fields inside form. Is that reason for e

相关标签:
2条回答
  • 2021-01-04 13:24

    If you really need it badly try increasing the key_space_limit

    Rack::Utils.key_space_limit = 262144 
    

    But this can be dangerous as per this "A higher exposure to POST parsing DOS attacks."

    Check this

    https://github.com/rack/rack/issues/318

    Rails / javascript: "too many parameter keys" - what's a good way to normalize form data?

    http://myrailsway.blogspot.in/2012/04/rangeerror-exceeded-available-parameter.html

    0 讨论(0)
  • 2021-01-04 13:37

    If you specified a submission method other than POST (such as method: :get) you might have to make your form submit a POST request instead.

    0 讨论(0)
提交回复
热议问题