Hi guys.i have questions
How can I hide react js code from browser
. because any one he can see my logic

Nov 7, 2022, 10:36 PM
How can you hide client side code from the client?
Good question; If you figure it out let me know.
Your JS code should goto a backend and do your verifications etc there; Do not do this on the frontend/client side because anyone can circumvent it; You can't hide JS code from the client
pure and simple
Make AJAX calls to a backend somewhere etc
Or something along that nature
why cant u remove it
Nov 7, 2022, 11:42 PM
I did found solution
https://www.dhiwise.com/post/how-to-hide-javascript-source-code
Nov 7, 2022, 11:49 PM
For the record; Obfuscation isn't really hiding it; This is more of a "mitigations to prevent people from looking"
This won't actually stop someone who wants to look
You can obfuscate it; But you cant prevent them from looking; in the end; they can view it if they please
Arguably obfuscation is hiding; but i was more along the term you wanted to make it so they cant view it at all; which you cant do.
Something like PHP on the backend would be completely hidden from the user
vs obfuscated JS
Nov 7, 2022, 11:52 PM

© 2024 Draquery.com All rights reserved.