Description
Add Cross-Origin Resource Sharing (CORS) support to enable browser-based clients and create a simple frontend example demonstrating the complete API integration. This completes the simple-sync MVP by making it accessible from web applications.
Acceptance Criteria
Technical Requirements
- Use Gin CORS middleware or implement custom CORS handler
- Allow appropriate HTTP methods (GET, POST, PUT, OPTIONS)
- Set proper Access-Control headers for development
- Frontend should be vanilla HTML/CSS/JavaScript (no frameworks)
- Include form-based login and event management
- Show real-time event updates after posting
- Handle authentication errors gracefully
- Provide example of token storage and usage
CORS Configuration
Access-Control-Allow-Origin: * (or specific domains)
Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Frontend Example Features
Definition of Done
Dependencies
- Requires completion of all previous MVP features
- Should work with Docker deployment setup
- Frontend should work with the deployed service
Description
Add Cross-Origin Resource Sharing (CORS) support to enable browser-based clients and create a simple frontend example demonstrating the complete API integration. This completes the simple-sync MVP by making it accessible from web applications.
Acceptance Criteria
Technical Requirements
CORS Configuration
Frontend Example Features
Definition of Done
Dependencies