CorsPolicy Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Cross-Origin-Resource-Sharing policy
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.CorsPolicyTypeConverter))]
public class CorsPolicy : Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICorsPolicy
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.CorsPolicyTypeConverter))>]
type CorsPolicy = class
interface ICorsPolicy
interface IJsonSerializable
Public Class CorsPolicy
Implements ICorsPolicy
- Inheritance
-
CorsPolicy
- Attributes
- Implements
Constructors
CorsPolicy() |
Creates an new CorsPolicy instance. |
Properties
AllowCredentials |
Specifies whether the resource allows credentials |
AllowedHeader |
Specifies the content for the access-control-allow-headers header |
AllowedMethod |
Specifies the content for the access-control-allow-methods header |
AllowedOrigin |
Specifies the content for the access-control-allow-origins header |
ExposeHeader |
Specifies the content for the access-control-expose-headers header |
MaxAge |
Specifies the content for the access-control-max-age header |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of CorsPolicy. |
DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of CorsPolicy. |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICorsPolicy. |
FromJsonString(String) |
Creates a new instance of CorsPolicy, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) |
Serializes this instance of CorsPolicy into a JsonNode. |
ToJsonString() |
Serializes this instance to a json string. |
ToString() |