added cors to repack route