From bf103cc0253f9e3c4faf80a3f7d755d75f3bfa2f Mon Sep 17 00:00:00 2001 From: Tib Date: Wed, 19 Feb 2025 13:51:24 +0100 Subject: [PATCH] docs: fix typo in cors (#11266) --- docs/live-preview/client.mdx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/live-preview/client.mdx b/docs/live-preview/client.mdx index 00309da45..3ada88367 100644 --- a/docs/live-preview/client.mdx +++ b/docs/live-preview/client.mdx @@ -256,18 +256,14 @@ If you are using relationships or uploads in your front-end application, and you // ... // If your site is running on a different domain than your Payload server, // This will allows requests to be made between the two domains - cors: { - [ - 'http://localhost:3001' // Your front-end application - ], - }, + cors: [ + 'http://localhost:3001' // Your front-end application + ], // If you are protecting resources behind user authentication, // This will allow cookies to be sent between the two domains - csrf: { - [ - 'http://localhost:3001' // Your front-end application - ], - }, + csrf: [ + 'http://localhost:3001' // Your front-end application + ], } ```