Comment

Comment by latortuga

One of my devs recently pitched an idea to me that I can't stop thinking about.

Strong Params requires you to enumerate all params on the server. But why couldn't you know what are valid params while building your form? You could serialize the params shape in the form builder and include it in your post payload, signed by the app secret to avoid tampering.

It should have done this from the beginning!

parent latortuga 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton