I read from one of the blog, for security reasons, it was suggested to do an input check on the server side, and not on the client side.
From the above statement, My mind began to ask then 1) what kind of check can I do with JS on the client side. 2) Is there any rule where any programmer can decide where to check, whether on the client side or on the server side?
I am creating a Java based web application
You can do any checks on the client, but you should never rely on this check.
, . (, JavaScript), , .
, , , .
, , javascript POST GET, ?
.
- .
, SQL- SQL - , . CSS, HTML. XML, RSS JSON, - , , , .
: - . , . - .
javascript, , , , , ( , ), .
, , , , .
, - , , , , . , -, - , .
, ( ) , .
, , , , " " .
The client-side check, however, should be considered a NO check, as clients can disable this check and enter invalid values.
The server should always check the entered data. Client verification is for convenience only.
Source: https://habr.com/ru/post/1752609/More articles:boost :: filesystem :: rename: cannot create file when this file already exists - c ++Единичное тестирование с помощью Spring рамки singleton beans - javajQuery next (ish) selector - jquerycannot find type "bigint" in Sybase ASE 12.5.4 - sqldatatypeshow to send data from android to server - androidMaven - use different java classes during the test and war phases - javaA different set of views for different user roles - ruby-on-railsJSP EL expressions not working in tag files - javaIs it safe to store sensitive settings in a .cs file instead of Web.config? - c #What is the best way to load 1,600,000 rows of data into a mysql database? - databaseAll Articles