I have a web application which allow some specific user to access some resources on the basis of IP address. I am doing IP address check in back end using Java. Now I am going to convert that application to Angular 2. Now how can I do the same thing in Angular 2?
Asked
Active
Viewed 33 times
0
-
Eventually your client side IP check is done by JavaScript. The JavaScript on the client machine is not under your control, so your check is useless. Even if your main application is loaded after the ip check, the client can modify whatever he wants in the client side code. – Akkusativobjekt Dec 19 '16 at 12:06
-
@Akkusativobjekt so what is the save way to do that. – Shams Tabraiz Alam Dec 19 '16 at 12:09
-
Did I send the IP in header to backend for check. – Shams Tabraiz Alam Dec 19 '16 at 12:10
-
Search for answers to similar questions or open a new specific one, this is not the place to find a solution. – Akkusativobjekt Dec 19 '16 at 12:14