I have a very basic single page portfolio site that I want to add an API.AI chatbot to. But I don't know how to secure the client access token associated with the agent I created through API.AI.
If this were a Node app, I'd just store it in an environment variable and access it with process.env
. But it's just a basic JS front-end. I know I could technically set up an API key proxy server to process those requests through, but that seems like such overkill.
Can I secure sensitive access tokens without a server-side framework, or do I have no choice but to convert this project into a Node app?