Ajax passes the headers parameter

reqSource parameters are required to be passed to the background through headers in the project

the code is as follows:

        $.ajax({
            type: "post",
            url: url,
            async: true,
            headers: {
                "reqSource": "pc"
            },
            data: data,
            success: function(data) {},
            error: function(data) {
                console.log("");
            }
        });

would like to ask you how to solve

Mar.03,2021

clipboard.png


$.ajax({
    type: "post",
    url: url,
    async: true,
    data: data,
    beforeSend: function(request) {
        request.setRequestHeader("token", token);
        request.setRequestHeader("version", version);
        request.setRequestHeader("taskId", currentTask.id);
    },
    success: function(rs) {
    }
})
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4be48-4d209.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4be48-4d209.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?