Skip to content

Conversation

@oktapodia
Copy link
Contributor

What does it do?

Improve documentation

Describe the technical changes you did.

We can pass a function to the origin property to have better handling of the cors configuration

Why is it needed?

cors plugin is quite limited without that, especially when you need to have some partial wildcard URLs, e.g. https://test-git-*.vercel.app

Describe the issue you are solving.

Documenting how to pass function to origin + its signature

Related issue(s)/PR(s)

Let us know if this is related to any issue/pull request

We can pass a function to the `origin` property to have better handling of the cors configuration
@vercel
Copy link

vercel bot commented Mar 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 27, 2025 3:32pm
Copy link
Collaborator

@pwizla pwizla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @oktapodia!
The PR is now approved, merged, should be live on docs.strapi.io in a few minutes, and will be mentioned in the next weekly snapshot release.

@pwizla pwizla added this to the 6.0.1 milestone Mar 31, 2025
@pwizla pwizla self-assigned this Mar 31, 2025
@pwizla pwizla added pr: updated content PRs updating existing documentation content source: CMS labels Mar 31, 2025
@pwizla pwizla merged commit 0c9e469 into strapi:main Mar 31, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: updated content PRs updating existing documentation content source: CMS

2 participants