我正在使用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'
)
);是否需要在服务器端编写代码?
发布于 2014-07-12 08:30:43
当我设置WithCrentials: false它的工作为我。
https://stackoverflow.com/questions/23736145
复制相似问题