REMINDER
Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.
APIKey and Security
-
how can I hide the APIKey from the (web page's) code?
And is there a do's and don'ts list in terms of security when building web sites with AppDrag?
Thanks in advance!
-
Hey Dick, you should NEVER use your APIKey in the frontend side! It's meant to be used only for severside operations.
For client side authentication please check JWT or simple auth with SQL and a token as explained in our tutorialshttps://academy.appdrag.com/FullStack-with-cloud-backend-Episode-2.html
-
@Joseph-Benguira thanks! And one more question; does each project have it's own APIKey?
-
@Dick-Honing yes, you can also re-generate it from your Cloud Backend Dashboard if it was exposed