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
CORS is a node.js package for providing a [Connect](http://www.senchalabs.org/connect/)/[Express](http://expressjs.com/) middleware that can be used to enable [CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) with various options.
9
-
10
-
**[Follow me (@troygoode) on Twitter!](https://twitter.com/intent/user?screen_name=troygoode)**
8
+
CORS is a [Node.js](https://nodejs.org/en/) package for providing a [Connect](https://github.com/senchalabs/connect)/[Express](https://expressjs.com/) middleware that can be used to enable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS) with various options.
11
9
12
10
*[Installation](#installation)
13
11
*[Usage](#usage)
@@ -19,13 +17,13 @@ CORS is a node.js package for providing a [Connect](http://www.senchalabs.org/co
19
17
*[Customizing CORS Settings Dynamically per Request](#customizing-cors-settings-dynamically-per-request)
20
18
*[Configuration Options](#configuration-options)
21
19
*[License](#license)
22
-
*[Author](#author)
20
+
*[Original Author](#original-author)
23
21
24
22
## Installation
25
23
26
24
This is a [Node.js](https://nodejs.org/en/) module available through the
27
25
[npm registry](https://www.npmjs.com/). Installation is done using the
*`origin`: Configures the **Access-Control-Allow-Origin** CORS header. Possible values:
214
-
-`Boolean` - set `origin` to `true` to reflect the [request origin](http://tools.ietf.org/html/draft-abarth-origin-09), as defined by `req.header('Origin')`, or set it to `false` to disable CORS.
212
+
-`Boolean` - set `origin` to `true` to reflect the [request origin](https://datatracker.ietf.org/doc/html/draft-abarth-origin-09), as defined by `req.header('Origin')`, or set it to `false` to disable CORS.
215
213
-`String` - set `origin` to a specific origin. For example, if you set it to
216
214
-`"http://example.com"` only requests from "http://example.com" will be allowed.
217
215
-`"*"` for all domains to be allowed.
@@ -237,21 +235,21 @@ The default configuration is the equivalent of:
237
235
}
238
236
```
239
237
240
-
For details on the effect of each CORS header, read [this](https://web.dev/cross-origin-resource-sharing/) article on web.dev.
238
+
For details on the effect of each CORS header, read [this](https://web.dev/articles/cross-origin-resource-sharing) article.
0 commit comments