Commit Graph

1 Commits

Author SHA1 Message Date
Claude
2f3999dabf 🔧 Fix social media link preview image display
**Fixed Open Graph Image Issues:**
- Updated static asset handling in security middleware
- Removed CSP restrictions for /static/ paths to allow social media scrapers
- Added proper cache headers for static assets (1 year cache)
- Fixed og:image dimensions to match actual image (1800x600)
- Added og:image:alt attribute for accessibility
- Added cache-busting version parameter (?v=2) to force preview refresh

**Added Debug Test Page:**
- Created /test-og/ endpoint for testing social media previews
- Displays actual meta tag URLs and image preview
- Includes testing instructions and troubleshooting tips

**Root Cause:** CSP and security headers were blocking social media crawlers from accessing the og-image.png file

**Testing:** Visit /test-og/ and use Facebook/Twitter debugging tools to verify image previews work

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-16 15:03:10 +05:30