Jquery Ajax IE8, come here!

what is the reason why the token value in the headers of ajax under ie8 cannot be obtained? Urgent ~

<input type="button" value=123" onclick="up();"/>
<script type="text/javascript">
    function up(){
        var jsonData = {
            customerno:"1011596229328502786"
        }
        var str = JSON.stringify(jsonData)
        jQuery.support.cors = true; 
        $.ajax({
            type:"post",
            url:Router+"eccustomer/isNullPolicy",
            data:str,
            contentType:"application/json;charset=UTF-8",
            async: true,
            dataType:"json", 
            headers:{
                token: "123"
            },
            success:function(res){  
                
            },
            error:function(err){
                alert("error")
            }
        })
    }
</script>

Apr.05,2021

there is nothing to see. IE8 uses XDomainRequest , while XDomainRequest cannot be set.

Menu