Set redirect for object and CORS