Parse configuration for cors