Skip to content

Commit

Permalink
[docs] Fix a grammar mistake in the API docs (#3076)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonMcKinstry authored and darrachequesne committed Oct 7, 2017
1 parent e26b71c commit 3f61165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/API.md
Expand Up @@ -241,7 +241,7 @@ Provides a function taking two arguments `origin:String` and `callback(error, su
__Potential drawbacks__:
* in some situations, when it is not possible to determine `origin` it may have value of `*`
* As this function will be executed for every request, it is advised to make this function work as fast as possible
* If `socket.io` is used together with `Express`, the CORS headers will be affected only for `socket.io` requests. For Express can use [cors](https://github.com/expressjs/cors).
* If `socket.io` is used together with `Express`, the CORS headers will be affected only for `socket.io` requests. For Express you can use [cors](https://github.com/expressjs/cors).

```js
io.origins((origin, callback) => {
Expand Down

0 comments on commit 3f61165

Please sign in to comment.