I want to add Authorization header to my requests. I added the following line in crossdomain.xml of the server:
<allow-http-request-headers-from domain="*" headers="Authorization"/>
And still, the header is not sent (checked with Wireshark).
Am i missing something?
EDIT:
the code of the urlRequest:
var request:URLRequest = new URLRequest();
request.method = URLRequestMethod.POST;
request.url = this.uploadURL;
request.data = post;
var requestHeader:URLRequestHeader = new URLRequestHeader("Authorization", "Basic ZXNhcGlyK2xhQGdtYWlsLmNvbTpFcmlrU2FwaXIyOQ==");
request.requestHeaders.push(requestHeader);