Closed wilfredktlr closed 1 year ago
This "bug" should belong to the webinterface library. https://github.com/cotestatnt/esp-fs-webserver
My knowlege for that is limited. Feel free to open a PR
Thanks. I didn't realize that this was an external library. I've opened an issue over there.
Bug report
Describe the bug
I use a reverse proxy (HAProxy) to access the webinterface. When Awtrix want's to load a resource (eg.
http://${window.location.hostname}/[filename]
) it fails because the browser cannot access it when the webinterface is accessed using HTTPS or a subdirectory. This causes the webinterface to not work correctly (eg. the menu).Additional information
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No JavaScript errors and a working menu.
Screenshots
An example of a fixed protocol and path.
The JavaScript error and non-working menu.
Logs
N/A
Additional context
A possible solution would be to make the URL relative (eg.
var e=new URL('./config.json');
).