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 #

-->
This commit is contained in:
Tib
2025-02-19 13:51:24 +01:00
committed by GitHub
parent 8bbe7bcbbe
commit bf103cc025

View File

@@ -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, // If your site is running on a different domain than your Payload server,
// This will allows requests to be made between the two domains // This will allows requests to be made between the two domains
cors: { cors: [
[ 'http://localhost:3001' // Your front-end application
'http://localhost:3001' // Your front-end application ],
],
},
// If you are protecting resources behind user authentication, // If you are protecting resources behind user authentication,
// This will allow cookies to be sent between the two domains // This will allow cookies to be sent between the two domains
csrf: { csrf: [
[ 'http://localhost:3001' // Your front-end application
'http://localhost:3001' // Your front-end application ],
],
},
} }
``` ```