projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
WebKit
/
LayoutTests
/
http
/
tests
/
resources
/
origin.php
1
<?php
2
3
$gotOrigin = 0;
4
foreach (getallheaders() as $name => $value) {
5
if ($name == "Origin") {
6
$gotOrigin = 1;
7
}
8
}
9
10
if ($gotOrigin) {
11
header('Location: square100.png');
12
}
13
else {
14
header('Location: square200.png');
15
}
16
header('HTTP/1.1 302 Redirect');