// allow remote access
header('Access-Control-Allow-Origin: *');
This solution does not require the client to make any changes, just add a 'Access-Control-Allow-Origin response header, to allow the standard to specify whether the resource request when the requested domain of the server's response, wherein the asterisk indicates that all wildcard address, if only one adapter address, may be "*" to the address corresponding to