Skip to content

Commit bf103cc

Browse files
authored
docs: fix typo in cors (#11266)
<!-- Thank you for the PR! Please go through the checklist below and make sure you've completed all the steps. Please review the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository if you haven't already. The following items will ensure that your PR is handled as smoothly as possible: - PR Title must follow conventional commits format. For example, `feat: my new feature`, `fix(plugin-seo): my fix`. - Minimal description explained as if explained to someone not immediately familiar with the code. - Provide before/after screenshots or code diffs if applicable. - Link any related issues/discussions from GitHub or Discord. - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Fixes # -->
1 parent 8bbe7bc commit bf103cc

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

docs/live-preview/client.mdx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -256,18 +256,14 @@ If you are using relationships or uploads in your front-end application, and you
256256
// ...
257257
// If your site is running on a different domain than your Payload server,
258258
// This will allows requests to be made between the two domains
259-
cors: {
260-
[
261-
'http://localhost:3001' // Your front-end application
262-
],
263-
},
259+
cors: [
260+
'http://localhost:3001' // Your front-end application
261+
],
264262
// If you are protecting resources behind user authentication,
265263
// This will allow cookies to be sent between the two domains
266-
csrf: {
267-
[
268-
'http://localhost:3001' // Your front-end application
269-
],
270-
},
264+
csrf: [
265+
'http://localhost:3001' // Your front-end application
266+
],
271267
}
272268
```
273269

0 commit comments

Comments
 (0)