Skip to content

Conversation

@chenjiahan
Copy link
Member

@chenjiahan chenjiahan commented Mar 27, 2025

Summary

The default CORS option has been changed in #4876.

This PR update CORS defaults to allow loopback addresses, this makes local development easier while ensuring security.

We still use cors: true as the default when using Module Federation, but this is still subject to discussion and further resolution.

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 1ac1570
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/67e55901e54cb20008a1d4cd
😎 Deploy Preview https://deploy-preview-4897--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: 72
Accessibility: 97
Best Practices: 100
SEO: 100
PWA: 60
View the detailed breakdown and full score reports

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

@chenjiahan chenjiahan changed the title feat(cors): update CORS defaults to allow localhost and local IPs feat(cors): update CORS defaults to allow loopback addresses Mar 27, 2025
@chenjiahan chenjiahan merged commit bf12689 into main Mar 27, 2025
15 checks passed
@chenjiahan chenjiahan deleted the cors_defaults_0327 branch March 27, 2025 14:17
@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