You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The author of the esp-fs-webserver just fixed the issue in version 1.2.3.
PS. I see the library is included in your source files. I'm a webdevelop and no expert on ESP programming but can't you add you add it to the platformio.ini file (source) so you can easily update to a new version?
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');
).The text was updated successfully, but these errors were encountered: