how to add header('Access-Control-Allow-Origin: *'); code example Example: access-control-allow-origin Access-Control-Allow-Origin: *