Skip to content

Commit

Permalink
docs: Replace micro-cors with cors middleware (#11395)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstcki committed Mar 27, 2020
1 parent 44b4070 commit a81d762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-routes/introduction.md
Expand Up @@ -48,7 +48,7 @@ export default (req, res) => {

To fetch API endpoints, take a look into any of the examples at the start of this section.

> API Routes [do not specify CORS headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), meaning they are **same-origin only** by default. You can customize such behavior by wrapping the request handler with [micro-cors](/docs/api-routes/api-middlewares.md#micro-support).
> API Routes [do not specify CORS headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), meaning they are **same-origin only** by default. You can customize such behavior by wrapping the request handler with the [cors middleware](/docs/api-routes/api-middlewares.md#connectexpress-middleware-support).
> API Routes do not increase your client-side bundle size. They are server-side only bundles.
Expand Down

0 comments on commit a81d762

Please sign in to comment.