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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-headers-origin.php

Issue 18595008: Prevents sending of 'orgin' in the "Access-Control-Request-Headers" when preflight requests are mad… (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 header("Access-Control-Allow-Origin: *");
3
4 if ($_SERVER["REQUEST_METHOD"] == "OPTIONS") {
5 if (stristr($_SERVER["HTTP_ACCESS_CONTROL_REQUEST_HEADERS"], "Origin") === false)
6 header("Access-Control-Allow-Headers: X-Custom-Header");
7 }
8 else
9 echo $_SERVER["HTTP_X_CUSTOM_HEADER"];
10 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698