Added optional http header setter to the Ajax query