Answers for "How to fix Access-Control-Allow-Origin (CORS origin) Issue for your HTTPS enabled WordPress Site"

1

wordpress Access-Control-Allow-Origin

function add_cors_http_header(){
    header("Access-Control-Allow-Origin: *");
}
add_action('init','add_cors_http_header');
Posted by: Guest on May-13-2021

Code answers related to "How to fix Access-Control-Allow-Origin (CORS origin) Issue for your HTTPS enabled WordPress Site"

Browse Popular Code Answers by Language