Anonymous access to controller action fails I have this controller, and I've set $allowAnonymous to true, but I'm still getting redirect to CP login:

class SitemapController extends BaseController
{
    protected $allowAnonymous = true;

    public function actionXml()
    {
        ...
        $this-&gt;renderTemplate('sitemap/list.xml', array(
            'entries' =&gt; $entries,
            'sections' =&gt; $enabledSections
        ));        
    }

}


Is there anything I'm missing?
I think your URL is wrong. 

Try /index.php/actions/sitemap/sitemap/xml

Here is the section of the docs that explains URLs for plugin controllers: http://buildwithcraft.com/docs/plugins/controllers#how-controller-actions-fit-into-routing