# DurableHttpClientOptions.IsSameOrigin(Uri, Uri)

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

[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.
