Remove allowed methods and headers

This commit is contained in:
Jonah Lawrence 2023-12-26 20:17:43 +02:00
parent 0d8e8c5ba7
commit 540dba79b7
No known key found for this signature in database
GPG Key ID: 613851A667DC08A3
1 changed files with 0 additions and 2 deletions

View File

@ -38,8 +38,6 @@ function displayImage($url, $userAgent, $redirect)
// Set headers to allow access from any origin // Set headers to allow access from any origin
header("Access-Control-Allow-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 // redirect if redirect is set or the image is larger than 4.5MB
if ($redirect || strlen($contents) > 4500000) { if ($redirect || strlen($contents) > 4500000) {