Configuring crud for cors based on configuration