function appendHeaders()
    {
        oXhr.setRequestHeader('authenticity_token', document.querySelector('meta[name=csrf-token]').getAttribute('content'));

        if ((options.sMethod === 'POST') && !(oData instanceof FormData))
        {
            oXhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8');
        }
    }
/**
     * Adds an authenticity token header to the request.
     */
Adds an authenticity token header to the request.
Adds an authenticity token header to the request .
function appendHeaders()
    {
        oXhr.setRequestHeader('authenticity_token', document.querySelector('meta[name=csrf-token]').getAttribute('content'));
        if ((options.sMethod === 'POST') && !(oData instanceof FormData))
        {
            oXhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8');
        }
    }
function appendHeaders ( ) { oXhr . setRequestHeader ( 'authenticity_token' , document . querySelector ( 'meta[name=csrf-token]' ) . getAttribute ( 'content' ) ) ; if ( ( options . sMethod === 'POST' ) && ! ( oData instanceof FormData ) ) { oXhr . setRequestHeader ( 'Content-Type' , 'application/x-www-form-urlencoded; charset=utf-8' ) ; } }
Adds an authenticity token header to the request.
Adds an authenticity token header to the request .