[jquery.form.js - v2.43] .ajaxForm and "Authorization" header
Hi all,
I am trying to user .ajaxForm() together with "Authorization" header.
Basically here is whay I am doing :
- $('#myForm').ajaxForm({
- beforeSend: function(xhr) {
- var authRequest = 'Basic '+ Base64.encode('user:pass')
- xhr.setRequestHeader('Authorization', authRequest);
- },
- beforeSubmit: function(formData, jqForm, options) {
- //...
- },
- success: function(data) {
- //...
- }
- });
But, the header isn't passed to the request...
Some ideas I have :
- I am on https, is there an issue ?
- When run the page, Google Chrome throws this error :
Maybe an issue here ? How can I solve this ?