So I'm making a small #Drupal-side API to let javascript #tests interact with a Drupal site.
I want to keep this as lightweight as possible, and rely on as few dependencies as possible. No JSON:API or JWT-related modules involved at the moment.
The JS calls are adding a custom HTTP header with a "secret" token, and my API routes ensure that token is present.
But anyone who sniffs web traffic can pick up that secret token, no?
I feel like I'm missing something fundamental here. Thoughts?




