When you click to a discussion from the main front page in this case http://example.com the discusiion content will not load.
This happens because when Flarum starts an ajax call to the API it does it by using the "www" in the URL so if your site is http://example.com and you click on a discussion it will call the API via ajax to http://www.example.com/api/discussions/ which it is not allowed since its a security issue in this case since they are not the same domain.
Now I am pretty sure this will be fix but at the moment what I did was just htaccess the site to rewrite to www.
Now everything works as expected.
This only happens when your domain changes and it doesn't start with www or a subdomain.