You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-6Lines changed: 22 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,12 +39,12 @@ the [geekality/php-cross-domain-proxy](https://packagist.org/packages/geekality/
39
39
And then for example add a `proxy.php` like this to your web application:
40
40
41
41
```PHP
42
-
<?php
43
-
require 'vendor/autoload.php';
42
+
<?php
43
+
require 'vendor/autoload.php';
44
44
45
-
CrossOriginProxy::proxy([
46
-
['host' => 'example.com'],
47
-
]);
45
+
Geekality\CrossOriginProxy::proxy([
46
+
['host' => 'example.com'],
47
+
]);
48
48
49
49
```
50
50
@@ -144,7 +144,7 @@ The requested URL must match at least one of the whitelisted criterias to be acc
144
144
145
145
require 'vendor/autoload.php';
146
146
147
-
CrossOriginProxy::proxy([
147
+
Geekality\CrossOriginProxy::proxy([
148
148
149
149
// URL component matching
150
150
['host' => 'localhost'],
@@ -180,3 +180,19 @@ $.ajax({
180
180
}
181
181
})
182
182
```
183
+
184
+
cURL and zlib options
185
+
---
186
+
187
+
You can add options which will be appended to the options set when doing the request. You can also turn off zlib compression, which is enabled by default.
0 commit comments