June 15, 2025 - PDF Viewer CORS Handling & External Citations Fix
Fixed PDF preview issues for external citations in agents with enhanced CORS handling, loading states, and fallback options.
🐛 Bug Fixes
PDF Preview for External Citations: Fixed PDF viewer issues when agents cite external PDF URLs
CORS Error Handling: Implemented proper CORS detection and handling for external PDF sources
PDF Loading States: Added loading indicators while testing PDF accessibility and CORS compatibility
🔧 Improvements
Enhanced PDF Viewer Component: New PDF viewer with robust error handling for cross-origin requests
Fallback Options: When CORS issues are detected, users can now open PDFs in a new tab as an alternative
Improved User Experience: Better feedback during PDF loading and error states for agent citations
📝 Technical Details
Introduced a hook to check for CORS errors before rendering PDF content
Displays loading state while testing CORS compatibility
Provides alternative access methods when cross-origin restrictions are detected
Enhances the reliability of PDF citations in agent responses
Last updated