/*********************************************************************** * No ' access-control-allow-origin ' Header is present on the requested resource. * Description: * Previously did not consider the Ajax cross-domain access will encounter this problem, today's dream is really in the test to see * this phenomenon, so look for information to see how to solve. * 2016-10-12 Shenzhen Nanshan Ping Shan village Zengjianfeng ********************************************************** ************/First, reference document: JS cross-domain access, No ' Access-control-allow-origin ' Header ispresent on http://zjblogs.com/js/access-control-allow-origin.htmlSecond, the solution: if the requested URL is a PHP page, you need to add code to the PHP page: header ("Access-control-allow-origin: *");
No ' Access-control-allow-origin ' header is present on the requested resource.