Stefan Kientzler - 2021-05-25 15:21:04 - In reply to message 1 from António Lira Fernandes
Apart from the bare output of the script, you neither ask a question, nor do you write at least rudimentary information about what you have done so far and what kind of environment you work in (Server, PHP-Version, Browser)...
... I still try to give reasonably useful information:
Secure context: false
This shows, that you are not working in secure context!
-> the page MUST run in a https:// environment
This is a requirement that must be met in order to be able to use the API provided by the browser at all.