From 8227baf42c865021bff90889d00ae0d137df6662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Dur=C3=A1n?= <1561955+midudev@users.noreply.github.com> Date: Wed, 23 Oct 2019 23:14:51 +0200 Subject: [PATCH] docs(api-routes): fix micro-cors example (#9184) The correct option to use with `micro-cors` package is `allowMethods` instead `allowedMethods`. This PR fixes the example. --- packages/next/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/README.md b/packages/next/README.md index 76c2c6355e..f637710fe7 100644 --- a/packages/next/README.md +++ b/packages/next/README.md @@ -1240,7 +1240,7 @@ Then, import `micro-cors` and [configure it](https://github.com/possibilities/mi import Cors from 'micro-cors' const cors = Cors({ - allowedMethods: ['GET', 'HEAD'], + allowMethods: ['GET', 'HEAD'], }) function Endpoint(req, res) { -- GitLab