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

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

Issue 80263004: Test Canvas tainting and WebGL video textures (CORS fetched.) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased + adjust expected output 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/webgl-remote-read-remote-image-allowed.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") { 3 if ($_SERVER['REQUEST_METHOD'] == "OPTIONS") {
4 # No preflights should happen.
4 echo "FAIL"; 5 echo "FAIL";
5 exit; 6 exit;
6 } 7 }
7 8
8 header("Access-Control-Allow-Origin: *"); 9 if (isset($_GET['with_credentials'])) {
9 10 header("Access-Control-Allow-Origin: http://127.0.0.1:8000");
10 if ($_SERVER['REQUEST_METHOD'] == "OPTIONS") { 11 header("Access-Control-Allow-Credentials: true");
11 header("Access-Control-Allow-Methods: GET"); 12 } else {
12 header("Access-Control-Allow-Headers: origin, accept-encoding, referer, rang e"); 13 header("Access-Control-Allow-Origin: *");
13 exit;
14 } 14 }
15
16 @include("../../media/resources/serve-video.php"); 15 @include("../../media/resources/serve-video.php");
17
18 ?> 16 ?>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/webgl-remote-read-remote-image-allowed.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698