HA Embedded www server python execution

I have a web server running on my pi that runs HA, and I can create an iFrame with that web server in it and it displays on my PC web browser, because that same web browser prompts me for login to that page and caches creds, but on ios HA app, I can’t seem to give it the login credentials. It just says unauthorized, no matter what I try.

So I was wondering, is it possible to use the embedded www page server in HA /local/www to also serve up a cgi-like fork of a python script ?

/local/www/cgi-bin/foo.py?str=x 

Or must I use ios’ safari and pull up HA in that browser, so that I may authenticate to the pi webserver in safari and thus see the panel properly ?
Thanks