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
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
*Formerly known as "PHP Cross Domain (AJAX) Proxy"*
4
4
5
-
A CORS proxy that allows cross domain requests. It can be used to access resources from third part websites when it's not possible to enable CORS.
5
+
PHP CORS Proxy is a simple php script that allows cross domain requests. It can be used to access resources from third party websites when it's not possible to enable CORS on target website i.e. when you don't own that website.
6
6
7
-
**Note**: Please check whether this solution is indeed necessary by having a look at[how you can enable CORS on your server](http://enable-cors.org/server.html).
7
+
**Note**: Please check whether this solution is indeed necessary by having a look on[how you can enable CORS on your server](http://enable-cors.org/server.html).
8
8
9
9
## Overview
10
10
@@ -13,7 +13,8 @@ A CORS proxy that allows cross domain requests. It can be used to access resourc
13
13
14
14
* Acts as a reverse proxy: request headers and data are propagated from proxy to server. Similarly, response headers and data are propagated from proxy to client.
15
15
* Provides support for all methods GET, POST, PUT, DELETE.
16
-
* Requests can be filtered against a list of trusted domains / URLs.
16
+
* Provides also support for HTTPS.
17
+
* Requests can be filtered against a list of trusted domains or URLs.
17
18
* External configuration (Work in progress)
18
19
* Error handling i.e. when server is not available (Work in progress)
19
20
* Debugging mode (Work in progress)
@@ -24,8 +25,8 @@ PHP Cors Proxy works with PHP 5.3+ or above.
See also the list of [contributors](https://github.com/softius/php-cross-domain-proxy/graphs/contributors) which participated in this project.
*See also the list of [contributors](https://github.com/softius/php-cross-domain-proxy/graphs/contributors) which participated in this project.
29
30
30
31
31
32
### License
@@ -51,8 +52,8 @@ For security reasons don't forget to define all the trusted domains / URLs into
@@ -63,21 +64,21 @@ It is possible to initiate a cross domain request either by providing the `X-Pro
63
64
64
65
### Using headers
65
66
66
-
It is possible to specify the target URL with the `X-Proxy-URL` header, which might be easier to set with your JavaScript library. For example, if you wanted to automatically use the proxy for external URL targets, for GET and POST requests:
67
+
It is possible to specify the target URL by using the `X-Proxy-URL` header, which might be easier to set with your JavaScript library. For example, if you wanted to automatically use the proxy for external URL targets, for GET and POST requests:
0 commit comments