AntTP - Serving Autonomi data over HTTP

I’ve release another version of sn_httpd (v0.3.15).

This includes better support for XOR URLs and loosens CORS requirements. Both help to support using sn_httpd as a proxy, with a dedicated browser.

Using a dedicated browser is easier to support with regular UI frameworks, allows a common format for links and removes (all?) CORS security worries (no logins, only ant sites addressable, etc).

To use Firefox as your Autonomi web browser:

  • Go to browser settings
  • Go to Network Settings
  • Update the HTTP Proxy and Port (usually localhost and 8080 with Docker)
  • Check Proxy DNS when using SOCKS v5

Example:

Once setup, you can just browse straight to XOR addresses as http://, e.g. for current IMIM, http://15e9865d8246f2e3084f55869f2b79d8b1862f5b6d6049f9e1a2b4d74fce1a0e/

While the URLs are a little long/clumsy, you can bookmark them as normal. In the future, sharing these bookmarks could be considered ‘pet names’.

You can also get a QR code plugin to easily convert URLs into QR codes to allow others to scan. I tried ‘Offline QR Code’, which worked well and I could load the page in Firefox mobile with my proxy set too.

URL for above blog is: http://15e9865d8246f2e3084f55869f2b79d8b1862f5b6d6049f9e1a2b4d74fce1a0e/blog/72fd74ade78542395b9fc3e2be83db3a0219ab3eb35fc0a8a119fb5598a7b06b#home

Or QR code:

These changes don’t stop you accessing sites via localhost URLs. It’s just a nicer experience with a dedicated browser! :slight_smile:

9 Likes