Not able to authenticate inside iFrame

I’ve made my code-server and ESPHome container accessible with a ssl reverse proxy (nginx). Now I’m trying to use these in panel_iframe with password auth enabled in both containers separate. But when submitting the password, the service (inside HA panel_iframe) just clear the password and I’m not able to log in. Any way to solve this?

Images of auth screen