localStorage remains on the client side and is not passed in the request.
If you want to transfer any localStorage information to the server, you will need to get the necessary values, and then either put them in hidden fields in your form, or use other means (for example, JSON) to transfer the value for the server.
source share