This is my script:
$.post('index.php?r=site/filterbyprice',{
price_range:values,
_csrf : $("#csrftoken").val()
}
,function(r){
console.log(r);
if(r==""){
$("#all-ads").html('<div class="error-page"></div>');
}
else{
$("#all-ads").html(r);
}
});
controller code:
public function actioAbc(){
echo 'inside abc';
}
I am facing the following error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://mandigoods.com/frontend/web/index.php?r=site/abc. (Reason: CORS header 'Access-Control-