added cors to dir server