A set of origins and methods (cross-origin access that you want to allow).
Declaration Syntax
C# |
public class CORSRule
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
CORSRule()()()() | Initializes a new instance of the CORSRule class | |
AllowedHeaders |
Specifies which headers are allowed in a pre-flight OPTIONS request through the
Access-Control-Request-Headers header.
| |
AllowedMethods |
The set of methods enabled for this rule.
| |
AllowedOrigins |
One or more response headers that you want customers to be able to access from their applications
(for example, from a JavaScript XMLHttpRequest object).
| |
Equals(Object) | (Inherited from Object.) | |
ExposeHeaders |
One or more headers in the response that you want customers to be able to access from their
applications (for example, from a JavaScript XMLHttpRequest object).
| |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
Id |
An optional unique identifier for the rule.
| |
MaxAgeSeconds |
The time in seconds that your browser is to cache the preflight response for the specified resource.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
WithAllowedHeaders(array<String>[]()[][]) | Obsolete.
Specifies which headers are allowed in a pre-flight OPTIONS request through the
Access-Control-Request-Headers header.
| |
WithAllowedMethods(array<String>[]()[][]) | Obsolete.
Sets the methods allowed for this rule.
| |
WithAllowedOrigins(array<String>[]()[][]) | Obsolete.
Sets one or more response headers that you want customers to be able to access from their applications
(for example, from a JavaScript XMLHttpRequest object).
| |
WithExposeHeaders(array<String>[]()[][]) | Obsolete.
Sets one or more headers in the response that you want customers to be able to access from their
applications (for example, from a JavaScript XMLHttpRequest object).
| |
WithId(String) | Obsolete.
Sets an optional unique identifier for the rule.
| |
WithMaxAgeSeconds(Int32) | Obsolete.
Sets the time in seconds that your browser is to cache the preflight response for the specified resource.
|
Inheritance Hierarchy
Object | |
CORSRule |