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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/resources/access-control-origin-header-in-isolated-world.php

Issue 2635023003: Fix a bug in origin header generation for CORS preflight in extensions (Closed)
Patch Set: Rebase Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2 if ($_SERVER["HTTP_ORIGIN"] == "http://example.com") {
3 header("Access-Control-Allow-Origin: http://example.com");
4
5 if ($_SERVER["REQUEST_METHOD"] == "OPTIONS") {
6 header("Access-Control-Allow-Headers: X-Custom-Header");
7 } else {
8 print $_SERVER["HTTP_X_CUSTOM_HEADER"];
9 }
10 } else {
11 header("HTTP/1.1 400");
12 }
13 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698