azure-storage-common\src\Common\Models\CORS.php
You may obtain a copy of the License at https://github.com/azure/azure-storage-php/LICENSE
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
PHP version 5
- Author
- Azure Storage PHP SDK
- Category
- Microsoft
- Copyright
- 2016 Microsoft Corporation
- License
- https://github.com/azure/azure-storage-php/LICENSE
- Link
- https://github.com/azure/azure-storage-php
- Package
- MicrosoftAzure\Storage\Common\Models
\MicrosoftAzure\Storage\Common\Models\CORS
- Author
- Azure Storage PHP SDK
- Category
- Microsoft
- Copyright
- 2017 Microsoft Corporation
- License
- https://github.com/azure/azure-storage-php/LICENSE
- Link
- https://github.com/azure/azure-storage-php
Methods

__construct(array<mixed,string> $allowedOrigins, array<mixed,string> $allowedMethods, array<mixed,string> $allowedHeaders, array<mixed,string> $exposedHeaders, integer $maxAgeInSeconds) : voidConstructor of the class.
| Name | Type | Description |
|---|---|---|
| $allowedOrigins | array<mixed,string> | The origin domains that are permitted to make request against the storage service via CORS. |
| $allowedMethods | array<mixed,string> | The methods (HTTP request verbs) that the origin domain may use for a CORS request. |
| $allowedHeaders | array<mixed,string> | The request headers that the origin domain may specify on the CORS request. |
| $exposedHeaders | array<mixed,string> | The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer. |
| $maxAgeInSeconds | integer | The maximum amount of time that a browser should cache the preflight OPTIONS request. |

getAllowedHeaders() : array<mixed,string>Getter for allowedHeaders
| Type | Description |
|---|---|
| array<mixed,string> |

getAllowedMethods() : array<mixed,string>Getter for allowedMethods
| Type | Description |
|---|---|
| array<mixed,string> |

getAllowedOrigins() : array<mixed,string>Getter for allowedOrigins
| Type | Description |
|---|---|
| array<mixed,string> |

getExposedHeaders() : array<mixed,string>Getter for exposedHeaders
| Type | Description |
|---|---|
| array<mixed,string> |

setAllowedHeaders(array<mixed,string> $allowedHeaders) : voidSetter for allowedHeaders
| Name | Type | Description |
|---|---|---|
| $allowedHeaders | array<mixed,string> | the allowed headers to be set. |

setAllowedMethods(array<mixed,string> $allowedMethods) : voidSetter for allowedMethods
| Name | Type | Description |
|---|---|---|
| $allowedMethods | array<mixed,string> | the allowed methods to be set. |

setAllowedOrigins(array<mixed,string> $allowedOrigins) : voidSetter for allowedOrigins
| Name | Type | Description |
|---|---|---|
| $allowedOrigins | array<mixed,string> | the allowed origins to be set. |

setExposedHeaders(array<mixed,string> $exposedHeaders) : voidSetter for exposedHeaders
| Name | Type | Description |
|---|---|---|
| $exposedHeaders | array<mixed,string> | the exposed headers to be set. |

setMaxedAgeInSeconds(integer $maxAgeInSeconds) : voidSetter for maxAgeInSeconds
| Name | Type | Description |
|---|---|---|
| $maxAgeInSeconds | integer | the max age in seconds to be set. |