add cors dependency to library