So I'm tring to create a secure form ( username & password ) with the usernames and passwords stored stored in a Json fil. So I have some questions.
How can I secure that json file will not be accessible by something coming via cross-domain request? Or How can I ensure it will not.
How do I actually use the .post() the function with json. I mean I read the .post() documentation but it doesn't make much sense to me. Not how can I use it with Json at least.
The json variable is something like that: var Arr = secureData.Users;
Any suggestions on how can it be done? It shouldn't be hard from the tutorials that I read but I just don't get it.
PS: I looked into another way but that uses MySQL and PHP but I don't have a MySQL database ( nor want to build one ) and I don't use php at my site.