Improved CORS error handling and authentication fixes
Published: October 15, 2025
v2.3.0
This release improves the developer experience when encountering CORS errors and fixes an authentication issue that previously cleared custom hash parameters during login.
✨ Highlights
Streamlined CORS troubleshooting
When a CORS error occurs, the SDK now presents a direct link to your project's CORS settings in Sanity Manage.
🐛 Notable bugfixes and improvements
- Authentication: Fixed an issue where the authentication flow cleared all hash parameters from the URL. Custom hash parameters are now preserved during login.
- TypeScript: Changed
ValidProjectionto a string type for improved developer experience. - Error messaging: Improved styling for error messages.
- Dependencies: Updated
@sanity/clientto version 7.12.0.