Menu
I’ve calling JSON files via JS fetch method.
How can I make it so only I can call these and get the response?
My concern is people can find these URL’s by looking into my page source and then directly linking to them and getting the JSON.
I’ve thought, having a secret key in my PHP somewhere, that’s then checked on my page which returns the JSON?
Not sure how this could work, sessions won’t work as they can be found?