dimanche 1 novembre 2015

How to prevent .load() from browser console?

I want some content of my website to be dynamically loaded after login. A $.post(...) interacts with a servlet which validates the user's credentials, and then a $.load(url) loads the content from a separate page into a <div>. I noticed that, as long as I know where to fetch the content from, I can force this behavior from the chrome javascript console.

How can I prevent a user from doing this?




Aucun commentaire:

Enregistrer un commentaire