Доступ к шрифту заблокирован CORS политика: нет заголовка Access-Control-Allow-Origin
Я попытался исправить это, добавив следующее в сценарий:
Код: Выделить всё
header('Access-Control-Allow-Origin: http://my-domain.com');
Код: Выделить всё
$link = 'http://jakartagrosir.com/products/search-0.html?keyp=sny+230&do=';
$html = file_get_contents($link);
$html = str_replace("../","http://thsoite.com/", $html);
$html = str_replace("styles/tf_black_white/image/favicon.png","http://thsoite.com/styles/tf_black_white/image/favicon.png", $html);
echo $html;
Подробнее здесь: https://stackoverflow.com/questions/497 ... ol-allow-o