Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress Access-Control-Allow-Origin


function add_cors_http_header(){
    header("Access-Control-Allow-Origin: *");
}
add_action('init','add_cors_http_header');

Source by wordpress.org #
 
PREVIOUS NEXT
Tagged: #wordpress
ADD COMMENT
Topic
Name
5+7 =