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

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

Issue 954233003: Enable SRI only for same origin and CORS content. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test failures Created 5 years, 9 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-style.php
diff --git a/LayoutTests/http/tests/security/resources/cors-style.php b/LayoutTests/http/tests/security/resources/cors-style.php
new file mode 100644
index 0000000000000000000000000000000000000000..cf556bfc6a48b2032db4d95679683211eb3c0cf7
--- /dev/null
+++ b/LayoutTests/http/tests/security/resources/cors-style.php
@@ -0,0 +1,10 @@
+<?php
+if (strtolower($_GET["cors"]) != "false") {
+ header("Access-Control-Allow-Origin: http://127.0.0.1:8000");
+}
+if (strtolower($_GET["credentials"]) == "true") {
+ header("Access-Control-Allow-Credentials: true");
+}
+header("Content-Type: text/css");
+echo ".id1 { background-color: yellow }";
+?>

Powered by Google App Engine
This is Rietveld 408576698