since the purpose of this script is to bypass CORS check, the response should contain CORS headers.
I've tried the script on my php server and requests from javascript didn't succeed because of missing CORS headers. After adding
header("Access-Control-Allow-Origin: *");
to the php file, everything works fine.
since the purpose of this script is to bypass CORS check, the response should contain CORS headers.
I've tried the script on my php server and requests from javascript didn't succeed because of missing CORS headers. After adding
to the php file, everything works fine.