Added cors profiles support.