Implement Cross-Origin Resource Sharing (CORS) in the API to allow requests from different origins and ensure correct CORS headers are set