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

Unified Diff: LayoutTests/http/tests/security/resources/cors-script.php

Issue 137983010: (Re)organize handling of CORS access control during resource loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: HTMLImportLoader no longer needs a ResourceFetcher Created 6 years, 11 months 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
Index: LayoutTests/http/tests/security/resources/cors-script.php
diff --git a/LayoutTests/http/tests/security/resources/cors-script.php b/LayoutTests/http/tests/security/resources/cors-script.php
index c9b1a37d4f3463d9a2c2e3041d3a975465dbde74..1023855ad8bce0394468b3230c289470d31a8b5f 100644
--- a/LayoutTests/http/tests/security/resources/cors-script.php
+++ b/LayoutTests/http/tests/security/resources/cors-script.php
@@ -7,6 +7,9 @@ if (strtolower($_GET["credentials"]) == "true") {
}
header("Content-Type: application/javascript");
$value = $_GET['value'];
+if ($_SERVER['HTTP_ORIGIN'] && $_GET['value_cors']) {
+ $value = $_GET['value_cors'];
+}
if ($value)
echo "result = \"" . $value . "\";";
else if (strtolower($_GET["fail"]) == "true")

Powered by Google App Engine
This is Rietveld 408576698