File upload blueimp中的跨域文件上载

File upload blueimp中的跨域文件上载,file-upload,cross-domain,blueimp,File Upload,Cross Domain,Blueimp,我正在使用blueimp插件上传一个文件。它在本地服务器上工作,但当我尝试使用不同的域文件时,它不会保存在那里。请帮我做我该做的事。我已经编写了以下代码 $('#fileupload').fileupload({ // Uncomment the following to send cross-domain cookies: xhrFields: {withCredentials: true}, url: 'http://192.168.1.205

我正在使用blueimp插件上传一个文件。它在本地服务器上工作,但当我尝试使用不同的域文件时,它不会保存在那里。请帮我做我该做的事。我已经编写了以下代码

$('#fileupload').fileupload({
        // Uncomment the following to send cross-domain cookies:
        xhrFields: {withCredentials: true},
        url: 'http://192.168.1.205/EncoderService/API/Default.aspx'
    });

    // Enable iframe cross-domain access via redirect option:
    $('#fileupload').fileupload(
        'option',
        'redirect',
        window.location.href.replace(
            /\/[^\/]*$/,
            '/cors/result.html?%s'
        )
    );

是否需要在服务器端编写代码

当我用creentials设置时:false 它对我有用