| OLD | NEW |
| 1 <?php | 1 <?php |
| 2 | 2 |
| 3 if (isset($_GET['no-preflight']) && $_SERVER['REQUEST_METHOD'] == "OPTIONS") { |
| 4 echo "FAIL"; |
| 5 exit; |
| 6 } |
| 7 |
| 3 header("Access-Control-Allow-Origin: *"); | 8 header("Access-Control-Allow-Origin: *"); |
| 4 | 9 |
| 5 if ($_SERVER['REQUEST_METHOD'] == "OPTIONS") { | 10 if ($_SERVER['REQUEST_METHOD'] == "OPTIONS") { |
| 6 header("Access-Control-Allow-Methods: GET"); | 11 header("Access-Control-Allow-Methods: GET"); |
| 7 header("Access-Control-Allow-Headers: origin, accept-encoding, referer, rang
e"); | 12 header("Access-Control-Allow-Headers: origin, accept-encoding, referer, rang
e"); |
| 8 exit; | 13 exit; |
| 9 } | 14 } |
| 10 | 15 |
| 11 @include("../../media/resources/serve-video.php"); | 16 @include("../../media/resources/serve-video.php"); |
| 12 | 17 |
| 13 ?> | 18 ?> |
| OLD | NEW |