webui-dev / webui

Use any web browser or WebView as GUI, with your preferred language in the backend and modern web technologies in the frontend, all in a lightweight portable library.
https://webui.me
MIT License
2.97k stars 173 forks source link

403 Access Denied #216

Closed fibodevy closed 1 year ago

fibodevy commented 1 year ago

This happens if I keep refreshing the page.

bChpMXvFjey

fibodevy commented 1 year ago

Update, it only happens with webui_set_hide set to true (and multiaccess to default false).

While refreshing websocket connection drops and that allows to reload the page without 403, so its ok.

hassandraga commented 1 year ago

I guess the issue is happening because the refreshing process is not fast enough to catch multiple refresh requests in one second. This because the web browser needs time to parse the HTML/CSS and then load webui.js and finally connect to WebUI.

However, I'm planning to create a stress-test example after we release v2.4.0 to catch that kind of issues and fix it in the next patches 2.4.x.