| Index: LayoutTests/http/tests/security/resources/webaudio/media-element-cross-origin-allow.php
|
| diff --git a/LayoutTests/http/tests/security/resources/video-cross-origin-allow.php b/LayoutTests/http/tests/security/resources/webaudio/media-element-cross-origin-allow.php
|
| similarity index 58%
|
| copy from LayoutTests/http/tests/security/resources/video-cross-origin-allow.php
|
| copy to LayoutTests/http/tests/security/resources/webaudio/media-element-cross-origin-allow.php
|
| index 056ddb51727aa1fa5648743b24aa8fabfbf4e740..3fa058ceeb005431eff7e2e25aa1c5a24663ba98 100644
|
| --- a/LayoutTests/http/tests/security/resources/video-cross-origin-allow.php
|
| +++ b/LayoutTests/http/tests/security/resources/webaudio/media-element-cross-origin-allow.php
|
| @@ -1,16 +1,18 @@
|
| <?php
|
|
|
| -if ($_SERVER['REQUEST_METHOD'] == "OPTIONS") {
|
| - # No preflights should happen.
|
| - echo "FAIL";
|
| - exit;
|
| -}
|
| -
|
| if (isset($_GET['with_credentials'])) {
|
| header("Access-Control-Allow-Origin: http://127.0.0.1:8000");
|
| header("Access-Control-Allow-Credentials: true");
|
| } else {
|
| header("Access-Control-Allow-Origin: *");
|
| }
|
| -@include("../../media/resources/serve-video.php");
|
| +
|
| +$name = 'laughter.wav';
|
| +$fp = fopen($name, 'rb');
|
| +
|
| +header("Content-Type: audio/x-wav");
|
| +header("Content-Length: " . filesize($name));
|
| +
|
| +fpassthru($fp);
|
| +exit;
|
| ?>
|
|
|