Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: LayoutTests/http/tests/security/resources/video-cross-origin-allow.php

Issue 75153002: Verify that video.crossOrigin performs no preflighting. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add missing doctype decl Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/video-cross-origin-via-dom.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ?>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/video-cross-origin-via-dom.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698