Skip to content

docs: clarify CORS security recommendations#4894

Merged
chenjiahan merged 1 commit intomainfrom
cors_recommendations_0327
Mar 27, 2025
Merged

docs: clarify CORS security recommendations#4894
chenjiahan merged 1 commit intomainfrom
cors_recommendations_0327

Conversation

@chenjiahan
Copy link
Member

Summary

Update the CORS configuration documentation and type definitions to improve clarity and security recommendations.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link

netlify bot commented Mar 27, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 4a82b14
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/67e51f7dca2a7e000816ecc4
😎 Deploy Preview https://deploy-preview-4894--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 74 (🟢 up 2 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the CORS configuration documentation and type definitions to clarify the security implications when enabling CORS with default options.

  • Clarifies that enabling CORS with default options allows all origins, which is not recommended.
  • Retains existing functionality with a clearer explanation in the documentation.
Files not reviewed (2)
  • website/docs/en/config/server/cors.mdx: Language not supported
  • website/docs/zh/config/server/cors.mdx: Language not supported

@chenjiahan chenjiahan merged commit c32209f into main Mar 27, 2025
13 checks passed
@chenjiahan chenjiahan deleted the cors_recommendations_0327 branch March 27, 2025 10:40
@chenjiahan chenjiahan mentioned this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant