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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/cors-data.php

Issue 2848353003: [Devtools] Fixed resource having no content if from xhr blob (Closed)
Patch Set: [Devtools] Fixed resource having no content if from xhr blob Created 3 years, 8 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: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/cors-data.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/cors-data.php b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/cors-data.php
new file mode 100644
index 0000000000000000000000000000000000000000..fbcd2f019c7e71f1ec1c842667a2783349e40051
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/cors-data.php
@@ -0,0 +1,9 @@
+<?php
+ob_start();
+header('Access-Control-Allow-Headers: origin, content-type, accept, authorization');
+header('Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD');
+header('Access-Control-Allow-Origin: *');
+if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS')
+ exit;
+
+echo 'Some content';

Powered by Google App Engine
This is Rietveld 408576698