Bug fix
Added CORS functionality