Chromium Code Reviews

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

Issue 149643003: Improve handling of CORS redirects for some resource loads. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use canRequest() when checking redirect origin; remove redundant null checks. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: LayoutTests/http/tests/security/resources/script-allow-credentials.php
diff --git a/LayoutTests/http/tests/security/resources/script-allow-credentials.php b/LayoutTests/http/tests/security/resources/script-allow-credentials.php
new file mode 100644
index 0000000000000000000000000000000000000000..452238de62e30703220a00093c93ba93e94f07f6
--- /dev/null
+++ b/LayoutTests/http/tests/security/resources/script-allow-credentials.php
@@ -0,0 +1,6 @@
+<?php
+header("Access-Control-Allow-Origin: http://127.0.0.1:8000");
+header("Access-Control-Allow-Credentials: true");
+header('Content-Type: application/javascript');
+echo '3;'
+?>

Powered by Google App Engine