Added CORS functionality and fix for Seed method
Merge with the previous version