-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ShareCorsRule.cs
27 lines (23 loc) · 1.8 KB
/
ShareCorsRule.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Storage.Common;
namespace Azure.Storage.Files.Shares.Models
{
/// <summary> CORS is an HTTP feature that enables a web application running under one domain to access resources in another domain. Web browsers implement a security restriction known as same-origin policy that prevents a web page from calling APIs in a different domain; CORS provides a secure way to allow one domain (the origin domain) to call APIs in another domain. </summary>
public partial class ShareCorsRule
{
/// <summary> The origin domains that are permitted to make a request against the storage service via CORS. The origin domain is the domain from which the request originates. Note that the origin must be an exact case-sensitive match with the origin that the user age sends to the service. You can also use the wildcard character '*' to allow all origin domains to make requests via CORS. </summary>
public string AllowedOrigins { get; set; }
/// <summary> The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma separated). </summary>
public string AllowedMethods { get; set; }
/// <summary> The request headers that the origin domain may specify on the CORS request. </summary>
public string AllowedHeaders { get; set; }
/// <summary> The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer. </summary>
public string ExposedHeaders { get; set; }
/// <summary> The maximum amount time that a browser should cache the preflight OPTIONS request. </summary>
public int MaxAgeInSeconds { get; set; }
}
}