Answer the question
In order to leave comments, you need to log in
How to make it so that access to the backend api is denied?
Please tell me, I have a website with a node js backend, when I send a request from the front using axios, this request is visible in the network tab, and the api address is also visible, so is it possible to make an unnecessary person not be able to send requests on back?
Answer the question
In order to leave comments, you need to log in
Of course you can, you need to disable the backend. Then there will be no access.
No. Impossible.
You can only smear everything with CORS so that it cannot be called from other sites, and deliberately confuse the API so that other people do not understand what needs to be requested and with what parameters.
Well, add authorization so that only authorized users can send requests.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question