using crossorigin php and javascript code example Example: php strict-origin-when-cross-origin header("Access-Control-Allow-Origin: *");