# DurableHttpClientOptions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durablehttpclientoptions/)

## IsSameOrigin(Uri, Uri) {#issameorigin-system-uri-system-uri-d6c75103}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durablehttpclientoptions/methods/issameorigin-system-uri-system-uri-d6c75103/)

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Durable.Http/DurableHttpOperation.cs#L165-L167)

```csharp
public static bool IsSameOrigin(Uri requestUri, Uri location)
```

Returns whether `location` has the scheme, host, and port of `requestUri`.

### Parameters

- `requestUri` (`Uri`): The URL of the request which started the operation.
- `location` (`Uri`): The operation's location.

### Returns

`true` when both URLs have one origin.
