Changed instantiation location of CORS