Class OriginValidator
Validates origins against a list of allowed origins.
Implements
Namespace: Singulink.Net.Http.Api.Service
Assembly: Singulink.Net.Http.Api.Service.dll
Syntax
public class OriginValidator : IOriginValidator
Constructors
| Name | Description |
|---|---|
| OriginValidator(params string[]) | Initializes a new instance of the OriginValidator class with the specified allowed origins. |
Methods
| Name | Description |
|---|---|
| IsAllowed(string) | Determines whether the specified origin is allowed. |