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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/misc/resources/cors-preflight.php

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Initialise encoded_body_length for sync XHR to data: URLs Created 4 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2 header("Access-Control-Allow-Origin: *");
3 header("Access-Control-Max-Age: 0");
4 header("Timing-Allow-Origin: *");
5
6 if ($_SERVER["REQUEST_METHOD"] == "OPTIONS") {
7 header("Access-Control-Allow-Headers: X-Require-Preflight");
8 ob_start();
9 }
10 ?>
11 <!DOCTYPE html>
12 <title>CORS preflight test</title>
13 If this script is accessed with the header X-Require-Preflight then the
14 browser will send a preflight request. Otherwise it won't.
15
16 <?php
17 if ($_SERVER["REQUEST_METHOD"] == "OPTIONS") {
18 # Discard the body.
19 ob_end_clean();
20 }
21 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698