Skip to content

Commit 8374e8a

Browse files
committed
Updated README.md and added license to composer.json
- Set it to MIT as I think that should the most permissive of the ones suggested at https://getcomposer.org/doc/04-schema.md#license
1 parent 86009a9 commit 8374e8a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ And then add a `proxy.php` like this to your web application:
4242

4343
```
4444

45+
Security
46+
---
47+
48+
As a simple sanity check the proxy will that the `Referer` header is set and that the hostname is the same as for the proxy. This can be easily spoofed of course, so you should also add entries to the whitelist array.
49+
50+
If the whitelist array is empty, any requests will be accepted.
51+
4552

4653
Usage
4754
---

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "geekality/php-cross-domain-proxy",
33
"description": "Simple PHP proxy for proxying cross-domain ajax requests.",
44
"keywords": ["php-cross-domain-proxy","cross-domain", "http", "proxy", "javascript", "ajax"],
5+
"license": "MIT",
56
"support": {
67
"issues": "https://github.com/Svish/php-cross-domain-proxy/issues",
78
"source": "https://github.com/Svish/php-cross-domain-proxy"

0 commit comments

Comments
 (0)