Abstract cors configuration