D
D
Daulet Nurzhanov2018-04-25 22:37:11
MySQL
Daulet Nurzhanov, 2018-04-25 22:37:11

How to make it so that the request is only from the front?

I want to validate data from the form on the front so as not to load the server.
How can I make it so that the request to the server comes only from the front, but nothing else?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2018-04-25
@sergey-gornostaev

No way. You can use CSRF, but it is not 100% guaranteed. The backend must always check the incoming data itself.

R
Rsa97, 2018-04-25
@Rsa97

No way.

H
hackuun, 2018-04-25
@hackuun

Purely conditional, you can check Originfor example, but it's easy to fake it.
Also, normal people don't do client-only validation for the same reason.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question