protected function resoveCors($payload): CorsInterface
    {
        if ($payload instanceof CorsInterface) {
            return $payload;
        } elseif (!is_array($payload)) {
            $payload = [];
        }

        return new Cors(static::parseSettings($payload));
    }