-->
Page 1 of 1

BasicAuth too low.

PostPosted: Sat Dec 10, 2016 11:33 am
by Clemzo
Hello,
I work on a project using ESP8266WebServer with complex html pages (css, javascript).
For the sake of simplicity, I use the SPIFFS and all my pages (.html) are stored in the file system with .css, .js and other files.
I have no pages parsed in my code (C/Arduino).
Unfortunately, the BasicAuth system is not suitable because:
If I call http://myserver, BasicAuth works correctly but if I call directly http://myserver/index.html, BasicAuth is bypassed.
The problem is that BasicAuth does not protect the directory as an httaccess but only the method of accessing the pages.
So my question: Is there a more effective authentication solution?
thank you for your attention

Re: BasicAuth too low.

PostPosted: Sat Dec 10, 2016 11:50 am
by Clemzo
Ok I found a simple solution: :)
2 lines instead of one:
Code: Select allServerHTTP.on ("/", handleRoot);
ServerHTTP.on ("/index.html", handleRoot);