sharmstr / MMM-ApexCharts

4 stars 1 forks source link

Basic Authentication possible #3

Closed shicks3 closed 3 days ago

shicks3 commented 1 week ago

The url I use to retrieve JSON data required Basic Authentication scheme. Is it possible to add to this module? Or is there a work around?

From the url site: Basic authentication is a simple authentication scheme built into the HTTP protocol. To use it, send your HTTP requests with an Authorization header that contains the word Basic followed by a space and a base64-encoded string username:password.

Example: Authorization: Basic ZGVtbzpwQDU1dzByZA==

Thank you

shicks3 commented 5 days ago

I was able to add into the code by adding to the options passed to the fetch function. Thanks._