Nginx Basic Authentication for Frappe problem

hi, i want to use Nginx’s Basic Authentication for my frappe’s Wiki Page but everytime i try to log in w basic auth it gone to this page “Your session has expired, please login again to continue.” even when i logged in with frappe account, this page still appear, kick me back to home page and log out my frappe. can anyone help me with this?

We are having the same issue. Adding basic auth to Nginx is a very handy feature especially for test servers.

Perhaps a conflict with Frappe’s own authentication?