Okay, so I\'ve been researching and can\'t seem to find out how to call a beforeSend in my ajax code.
I can use another way but I wanted to use this way as i know it work