Title : Access Control Allow Origin http set Headers Site Name : http://live24u.com/ URL : http://live24u.com/access-control-allow-origin-http-set-headers/ Live Example : http://live24u.com/tutorial/ We are Web Technology Experts and Team who provide you very Important information on Web Development information, Interview Questions and Answers, live project problem solution and their solution and online free tutorials – “live24u.com”.
// here include this three statement
header('Access-Control-Allow-Origin: *'); //all the methods access code
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS'); // all the resource and request get
header('Access-Control-Allow-Headers: Content-Type, Content-Range, Content-Disposition, Content-Description');