diff --git a/api/index.php b/api/index.php index 1713ce1..7f29b0a 100644 --- a/api/index.php +++ b/api/index.php @@ -38,8 +38,6 @@ function displayImage($url, $userAgent, $redirect) // Set headers to allow access from any origin header("Access-Control-Allow-Origin: *"); - header("Access-Control-Allow-Methods: GET, OPTIONS"); - header("Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With"); // redirect if redirect is set or the image is larger than 4.5MB if ($redirect || strlen($contents) > 4500000) {