Resolve Cross-Origin Resource Sharing errors and misconfigurations
Fix CORS configuration issues:
Error: {{CORS_ERROR}}
Current setup: {{CURRENT_CONFIG}}
Debugging steps:
1. Identify the exact CORS error from browser console
2. Check the failing request's origin and headers
3. Verify server CORS configuration matches requirements
4. Check for preflight OPTIONS requests
5. Verify credentials/cookies handling
6. Check proxy configuration if applicable
Provide:
- Correct CORS configuration for the framework
- Headers that need to be set
- Proxy configuration if needed
- Test commands to verify CORS works
- Common CORS pitfalls to avoidFixing CORS errors in web applications