From f7fe453dea27697b47b957716481c05d1330e926 Mon Sep 17 00:00:00 2001 From: Jeremy Stucki Date: Fri, 27 Mar 2020 12:26:08 +0100 Subject: [PATCH] docs: Replace micro-cors with cors middleware --- docs/api-routes/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-routes/introduction.md b/docs/api-routes/introduction.md index e8411d08bf8a6..7e828e06a048b 100644 --- a/docs/api-routes/introduction.md +++ b/docs/api-routes/introduction.md @@ -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.