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

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

Issue 146853003: Correctly handle CORS access checks over cache-validating responses. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/resources/iframe-crossorigin-script.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/resources/conditional-cors.php
diff --git a/LayoutTests/http/tests/security/resources/conditional-cors.php b/LayoutTests/http/tests/security/resources/conditional-cors.php
new file mode 100644
index 0000000000000000000000000000000000000000..eb2080cbd04df02259510e002f0dc27b5485f949
--- /dev/null
+++ b/LayoutTests/http/tests/security/resources/conditional-cors.php
@@ -0,0 +1,10 @@
+<?php
+if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
+ header('HTTP/1.0 304 Not Modified');
+ exit;
+}
+header('Access-Control-Allow-Origin: *');
+header('Last-Modified: ' . gmdate("D, d M Y H:i:s", filemtime("conditional-cors.php")) . " GMT");
+header('Content-Type: application/javascript');
+echo '2;'
+?>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/resources/iframe-crossorigin-script.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698