Ora sembra funzionare anche nel browser, non capisco cosa non andava... mah
Grazie a tutti