Hi,
I need to add extra headers to be sent with standard form submission to pass a basic http authentication token.
On this page http://ift.tt/1jw17kU I have learned that I should use:
form.submit{
url: ......
headers: {Authorization: ...}
}
but whatever I try no extra headers are sent.
I have not been able to find any example of adding extra headers to form submit.
How can I do it?
For Ajax requests this works:
Ext.Ajax.defaultHeaders = {Authorization: make_basic_auth(username, password)};
however, a form submit cannot be done via Ajax.
I need to add extra headers to be sent with standard form submission to pass a basic http authentication token.
On this page http://ift.tt/1jw17kU I have learned that I should use:
form.submit{
url: ......
headers: {Authorization: ...}
}
but whatever I try no extra headers are sent.
I have not been able to find any example of adding extra headers to form submit.
How can I do it?
For Ajax requests this works:
Ext.Ajax.defaultHeaders = {Authorization: make_basic_auth(username, password)};
however, a form submit cannot be done via Ajax.
Aucun commentaire:
Enregistrer un commentaire