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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/resources/redirect-cors-origin-null.php

Issue 20735002: CORS: Fix the handling of redirected request containing Origin null. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 $request_origin_value = $_SERVER["HTTP_ORIGIN"];
3
4 if ($_SERVER['REQUEST_METHOD'] == "GET") {
5 header("HTTP/1.1 302");
6 header("Location: http://localhost:8000/xmlhttprequest/resources/redirect-c ors-origin-null-pass.php");
7 }
8 if (!is_null($request_origin_value)) {
9 header("Access-Control-Allow-Origin: $request_origin_value");
10 }
11 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698