请问有什么办法解决一下cross domain的问题?
我尝试用ajax method 也是不能
$.ajax({
url:'https://vrl.lta.gov.sg/lta/vrl/action/captchaImg?FUNCTION_ID=F0501015ET',
type:'GET',
crossDomain: true,
headers:{
'Referer': 'https://vrl.lta.gov.sg/lta/vrl/action/pubfunc?ID=EnquireTransferFee'
},
cache:false,
success:function(xml){
$('#test_captcha').html(xml);
}
});
});用iframe也是不能
iframe src="https://vrl.lta.gov.sg/lta/vrl/action/captchaImg?FUNCTION_ID=F0501015ET" style="border: none; height: 70px; overflow: visible;"></iframe>
我尝试用ajax method 也是不能
$.ajax({
url:'https://vrl.lta.gov.sg/lta/vrl/action/captchaImg?FUNCTION_ID=F0501015ET',
type:'GET',
crossDomain: true,
headers:{
'Referer': 'https://vrl.lta.gov.sg/lta/vrl/action/pubfunc?ID=EnquireTransferFee'
},
cache:false,
success:function(xml){
$('#test_captcha').html(xml);
}
});
});用iframe也是不能
iframe src="https://vrl.lta.gov.sg/lta/vrl/action/captchaImg?FUNCTION_ID=F0501015ET" style="border: none; height: 70px; overflow: visible;"></iframe>
*做这个没有任何犯罪想法,只是想让用户可以更方便得到所属资料。