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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/resources/video-cross-origin-allow.php
diff --git a/LayoutTests/http/tests/security/resources/video-cross-origin-allow.php b/LayoutTests/http/tests/security/resources/video-cross-origin-allow.php
index 4ce9a6d30e6bcfe83f736b6e710b35353171fdf8..8ec4d67bdfceeb226d1aa75b51e3a0a339b02d62 100644
--- a/LayoutTests/http/tests/security/resources/video-cross-origin-allow.php
+++ b/LayoutTests/http/tests/security/resources/video-cross-origin-allow.php
@@ -1,5 +1,10 @@
<?php
+if (isset($_GET['no-preflight']) && $_SERVER['REQUEST_METHOD'] == "OPTIONS") {
+ echo "FAIL";
+ exit;
+}
+
header("Access-Control-Allow-Origin: *");
if ($_SERVER['REQUEST_METHOD'] == "OPTIONS") {
« 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