I wanted to add an extra parameter in all my ajax call. I saw the method, $.ajaxSetup but cant seem to make it work.
I basically have this, what I want is to send additional data on all subsequent ajax call
I have my spring controller like below. Its an interceptor that distinguishes Ajax and Non-Ajax Call.
I am not sure, but why is that, it is not sending the extra parameter. Anything wrong in my understanding?
Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!