wordpress no 'access-control-allow-origin' header code example
Example: wordpress Access-Control-Allow-Origin
function add_cors_http_header(){
header("Access-Control-Allow-Origin: *");
}
add_action('init','add_cors_http_header');
function add_cors_http_header(){
header("Access-Control-Allow-Origin: *");
}
add_action('init','add_cors_http_header');