I have embedded mongoose in a C++ application used for develop and test web systems. When these web systems are running locally there is no need for security. It should run like an anonymous authentication system. I didn’t find any way to do this in mongoose so I rewrote the “authorize” method to
static int authorize(struct mg_connection *, struct file *) {
return 1;
}
Normally the authorize method validates user. Is there another way to configure mongoose to run like anonymous? And is there a problem rewriting the authorize method like this.