When using apache handler instead of FastCGI / PHP-FPM I can use a workaround to response a preflight HTTP request, checking REQUEST_METHOD and returning http code 200.