Skip to content

Commit df19bd1

Browse files
committed
Test tweaks
1 parent 67b0d7d commit df19bd1

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

test/index.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,16 @@
1414
<body spellcheck="false">
1515

1616
<h1>PHP Cross Domain Proxy test page</h1>
17-
<p>A "jQuery enabled" test page. Edit an example and push 🛫, or just use the browser developer console.</p>
18-
<p><em>All</em> requests will be sent through the proxy even if not <em>actually</em> cross-domain, since this is a test page for that proxy.</p>
19-
20-
<h2>Proxy whitelist</h2>
17+
<p>Edit an example and push 🛫, or just use the browser developer console.</p>
18+
<p>The proxy is configured with the below whitelist.</p>
2119
<pre id="whitelist"></pre>
2220

2321
<h2>Examples</h2>
2422

2523

2624
<pre contenteditable>
2725
// GET, plain, no nothing
28-
$.get('http://example.com')
26+
$.get('https://example.com')
2927
</pre>
3028

3129

test/proxy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
// Exact matching
99
['http://www.yr.no/place/Sweden/Stockholm/Stockholm/forecast.xml'],
10-
10+
1111
// URL component matching
1212
['host' => 'localhost'],
13-
['host' => 'example.com', 'scheme' => 'http'],
13+
['host' => 'example.com', 'scheme' => 'https'],
1414

1515
// Regex matching
1616
['regex' => '%^http://www.yr.no/place/Norway/%'],

0 commit comments

Comments
 (0)