Introduced CorsConfig bean to simplify reading config values from Properties.