자바 스크립트 조건 안에 PHP로 헤더를 보내고 싶습니다. 그게 가능하니?자바 스크립트 조건 안에 PHP 헤더가 있습니까?
if ($('body').hasClass('browserChrome')) {
<?php
header("Content-Type: application/x-chrome-extension");
header('Content-Disposition: attachment; filename="http://example.com/file.crx"');
header("Pragma: no-cache");
header("Expires: 0");
?>
}