How do I add location permissions for a local file?

I’m building a landing page that is hosted locally (file:///)and loaded when creating a new tab. The page makes a call to a weather API that uses location. I tried adding site permissions from the popup but the browser doesn’t seem to remember it. Upon searching through the site permissions, it seems the permission is stored as file:// which doesn’t match the address bar. But there also doesn’t seem to be an option to manually add an address (which would address the issue ha!).

It would help if you would mention which OS you are using.
That “///” looks weird. The standard is to have “protocol://address”

I’m using Ubuntu 22.04.1 LTS

The browser cannot load the page from “file://”

1 Like