Unverified Commit a81d7620 authored by Jeremy Stucki's avatar Jeremy Stucki Committed by GitHub

docs: Replace micro-cors with cors middleware (#11395)

parent 44b4070f
...@@ -48,7 +48,7 @@ export default (req, res) => { ...@@ -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. 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. > API Routes do not increase your client-side bundle size. They are server-side only bundles.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment