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: docs/api.md
+1
Original file line number
Diff line number
Diff line change
@@ -327,6 +327,7 @@ Returns an `http.Server` instance (got from calling `http.createServer`). If
327
327
```js
328
328
{
329
329
origin:String// Allow requests from specific origin. `false` for same-origin. [default: '*']
330
+
hostname:String// If specified, only allow requests whose `Host` header matches this hostname. Note that you should not specify the port since this is automatically determined by the server. Ex: `localhost` [default: `undefined`]
0 commit comments