Right now the API URL is in the settings file.
Anyone can “hijack” it to make changes to the data.
How can we secure this? I’m not looking for SSL encryption 2FA “what’s your mother’s maiden name” Fort Knox kinda safety. Just make it a bit harder to mess with.
Since the client is hosted on GitHub pages as a static site we don’t have many options..
Create a cookie and have that sent with every API call? Only accept API calls from certain url origins (CORS?)?