title: Symfony2 profiler (toolbar) is disabled behind an HTTPS firewall
body: <p>I have a problem with the Symfony2 toolbar which is hidden when I add <code>requires_channel: https</code> in order to force HTTPS in some protected area of the website. If I remove <code>requires_channel: https</code>, the Symfony2 toolbar is displayed and I can click on it to see some details about the request (the normal behaviour). If I add <code>requires_channel: https</code>, no toolbar is displayed although the code is present at the end of the pages:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div id="sfwdt4b56c8" class="sf-toolbar" style="display: none"&gt;&lt;/div&gt;&lt;script&gt;/*&lt;![CDATA[*/    Sfjs = (function() {        "use strict"; [...]
  </code></pre>
  
  <p>Am I missing something to enable Symfony2 toolbar behind a HTTPS firewall? I used <a href="http://softwareinabottle.wordpress.com/2011/12/18/setting-up-apache-http-server-with-ssl-support-on-ubuntudebian/" rel="nofollow">this tutorial</a> to setup the SSL in Apache2, in my development environment on my local computer.</p>
  
  <p>See configuration files below.</p>
  
  <h2>Routing</h2>
  
  <pre><code>php app/console router:debug
  
  [router] Current routes
  Name                                         Method Scheme Host Path
  [...]
  _wdt                                         ANY    ANY    ANY  /_wdt/{token}
  _profiler_home                               ANY    ANY    ANY  /_profiler/
  _profiler_search                             ANY    ANY    ANY  /_profiler/search
  _profiler_search_bar                         ANY    ANY    ANY  /_profiler/search_bar
  _profiler_purge                              ANY    ANY    ANY  /_profiler/purge
  _profiler_info                               ANY    ANY    ANY  /_profiler/info/{about}
  _profiler_import                             ANY    ANY    ANY  /_profiler/import
  _profiler_export                             ANY    ANY    ANY  /_profiler/export/{token}.txt
  _profiler_phpinfo                            ANY    ANY    ANY  /_profiler/phpinfo
  _profiler_search_results                     ANY    ANY    ANY  /_profiler/{token}/search/results
  _profiler                                    ANY    ANY    ANY  /_profiler/{token}
  _profiler_router                             ANY    ANY    ANY  /_profiler/{token}/router
  _profiler_exception                          ANY    ANY    ANY  /_profiler/{token}/exception
  _profiler_exception_css                      ANY    ANY    ANY  /_profiler/{token}/exception.css
  [...]
  </code></pre>
  
  <h2><code>app/config/security.yml</code>:</h2>
  
  <pre class="lang-yml prettyprint-override"><code>security:
      [...]
      access_control:
          #~ no authentification:
          - { path: ^/(en|fr)/news, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: http }
          [...]
          #~ Logged in
          - { path: ^/(en|fr)/dashboard, roles: ROLE_USER, requires_channel: https }
          [...]
  </code></pre>
  
  <h2><code>app/config/config_dev.yml</code>:</h2>
  
  <pre class="lang-yml prettyprint-override"><code>web_profiler:
      toolbar: true
      intercept_redirects: false
  </code></pre>