Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP Headers with ExtJS 4 Stores

I have already a few stores instanciated. But at a certain point, I'd to add a HTTP header in all of them. How can I do that, with ExtJS 4 ?

like image 964
TigrouMeow Avatar asked Nov 08 '11 04:11

TigrouMeow


1 Answers

Assuming that you are using an ajax proxy, you could update the headers property on the stores in question. Looking at the code it'll apply whatever is in there as the headers.

A more involved solution would involve overriding the doRequest function to do whatever suited you.

like image 176
wombleton Avatar answered Oct 20 '22 15:10

wombleton