Skip to content

Commit 1bea7b1

Browse files
committed
Update README and switch to MIT License
1 parent 39cae22 commit 1bea7b1

File tree

3 files changed

+35
-27
lines changed

3 files changed

+35
-27
lines changed

LICENSE.md

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,7 @@
1-
This is free and unencumbered software released into the public domain.
1+
Copyright 2017-2018 the 'cors-buster' authors
22

3-
Anyone is free to copy, modify, publish, use, compile, sell, or
4-
distribute this software, either in source code form or as a compiled
5-
binary, for any purpose, commercial or non-commercial, and by any
6-
means.
7-
8-
In jurisdictions that recognize copyright laws, the author or authors
9-
of this software dedicate any and all copyright interest in the
10-
software to the public domain. We make this dedication for the benefit
11-
of the public at large and to the detriment of our heirs and
12-
successors. We intend this dedication to be an overt act of
13-
relinquishment in perpetuity of all present and future rights to this
14-
software under copyright law.
15-
16-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19-
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20-
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22-
OTHER DEALINGS IN THE SOFTWARE.
23-
24-
For more information, please refer to <http://unlicense.org>
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
254

5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
266

7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Uncaught (in promise) TypeError: Failed to fetch
2121
You can do this instead, and now there's no error:
2222

2323
```
24-
window.fetch('http://cors-buster.now.sh/?href=https://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64.tar.gz')
24+
window.fetch('http://cors-buster.now.sh/nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64.tar.gz')
2525
```
2626

2727
## Is this safe?
@@ -45,6 +45,8 @@ the server will make it that kind of request instead.
4545
If there's a way to whitelist ALL headers, let me know. The one's I've explicitly added
4646
so far are:
4747

48+
#### Request Headers:
49+
4850
- accept-encoding
4951
- accept-language
5052
- accept
@@ -62,6 +64,24 @@ so far are:
6264
- x-http-method-override
6365
- x-requested-with
6466

67+
#### Response Headers:
68+
69+
- accept-ranges
70+
- age
71+
- cache-control
72+
- content-length
73+
- content-language
74+
- content-type
75+
- date
76+
- etag
77+
- expires
78+
- last-modified
79+
- pragma
80+
- server
81+
- transfer-encoding
82+
- vary
83+
- x-github-request-id
84+
6585
## That is nice, I want to run my own server
6686

6787
Sure thing, just do:
@@ -73,7 +93,14 @@ npm install
7393
PORT=80 npm start
7494
```
7595

96+
## No, I meant I want to deploy it to zeit.now.sh
97+
98+
Even easier, just do:
99+
100+
```
101+
now wmhilton/cors-buster
102+
```
103+
76104
## License
77105

78-
Copyright 2017 William Hilton.
79-
Licensed under [The Unlicense](http://unlicense.org/).
106+
This work is released under [The MIT License](https://opensource.org/licenses/MIT)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"keywords": [],
1111
"author": "William Hilton <[email protected]>",
12-
"license": "Unlicense",
12+
"license": "MIT",
1313
"repository": {
1414
"type": "git",
1515
"url": "git://github.com/wmhilton/cors-buster.git"

0 commit comments

Comments
 (0)