title: ExtJS authentication
body: <p>I'm tring to authenticate user to have access to page from extJS. I saw some examples how to do it, but I'm still getting 'authentication required' error. How should I do it?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>Ext.onReady(function() {
  
      var auth = "Basic " + 'user' + ':' + 'password';
  
      // Create store          
      var myStore = new Ext.data.JsonStore({
          // Load data at once
          autoLoad: true,
          // Override default http proxy settings
          proxy: new Ext.data.ScriptTagProxy({
              // Call web service method using GET syntax
              url: 'http://myotherdomain.com/something.xml',
              headers : { Authorization : auth }
          })
      });
  });
  </code></pre>