Connection Issues in My Grafana Datasource Plugin

Hello everyone,

I have developed a Grafana datasource plugin without a backend. The plugin is working correctly, but it only functions when secureJsonData is not used. However, I would like to publish this project and ensure it works properly with secure credentials.

What I Want to Achieve

  • The user should enter https://yourserver, apitoken, and cacheTime in ConfigEditor.tsx.
  • In plugin.json, I want to store https://yourserver and apitoken securely using a dynamic proxy.
  • I want to pass the base URL dynamically in my API methods instead of hardcoding it.

Currently, I am encountering connection errors, and I believe I might be missing some small details. I have attached the code for reference. Could anyone help me debug and resolve these issues?

I truly appreciate your time and assistance. Thank you in advance for your support!

Best regards,`

`