From 2fed17f35f32a7b10942a0ea197625adf96bc615 Mon Sep 17 00:00:00 2001 From: Pierre Wizla Date: Thu, 21 Sep 2023 15:55:05 +0200 Subject: [PATCH] Update next-js with Axios localhost CORS tip --- docusaurus/docs/dev-docs/integrations/next-js.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docusaurus/docs/dev-docs/integrations/next-js.md b/docusaurus/docs/dev-docs/integrations/next-js.md index 660fc5a227..23afce05db 100644 --- a/docusaurus/docs/dev-docs/integrations/next-js.md +++ b/docusaurus/docs/dev-docs/integrations/next-js.md @@ -60,6 +60,10 @@ No installation needed. +:::tip +If you're getting `localhost` errors with Axios, but your requests work fine by replacing localhost with 127.0.0.1, please ensure this is not a CORS issue (see additional details in the [axios GitHub](https://github.com/axios/axios/issues/4837#issuecomment-1198487683)). +::: + ## GET Request your collection type Execute a `GET` request on the `restaurant` collection type in order to fetch all your restaurants.