# ContainerAppCorsPolicyProxy

- Module: [Aspire.Hosting.Azure.Provisioning.AppContainers](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents the ContainerAppCorsPolicy Azure Provisioning model.

## Definition

```typescript
interface ContainerAppCorsPolicyProxy {
  allowCredentials: BicepValueProxy | boolean;
  allowedHeaders: Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfStringProxy;
  allowedMethods: Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfStringProxy;
  allowedOrigins: Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfStringProxy;
  exposeHeaders: Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfStringProxy;
  maxAge: BicepValueProxy | number;
  clearAllowCredentials(): void;
  clearMaxAge(): void;
}
```

## Properties

- `allowCredentials`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AllowCredentials provisioning property.
- `allowedHeaders`: [Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/aspire-hosting-azure-provisioning-appcontainers-generated-listofstringproxy.md) `get - set` -- Gets or sets the AllowedHeaders provisioning property.
- `allowedMethods`: [Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/aspire-hosting-azure-provisioning-appcontainers-generated-listofstringproxy.md) `get - set` -- Gets or sets the AllowedMethods provisioning property.
- `allowedOrigins`: [Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/aspire-hosting-azure-provisioning-appcontainers-generated-listofstringproxy.md) `get - set` -- Gets or sets the AllowedOrigins provisioning property.
- `exposeHeaders`: [Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/aspire-hosting-azure-provisioning-appcontainers-generated-listofstringproxy.md) `get - set` -- Gets or sets the ExposeHeaders provisioning property.
- `maxAge`: `BicepValueProxy | number` `get - set` -- Gets or sets the MaxAge provisioning property.

## Methods

- [clearAllowCredentials](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappcorspolicyproxy/clearallowcredentials.md) -- `method` -- Clears the AllowCredentials provisioning property.
    ```typescript
  clearAllowCredentials(): void
  ```
- [clearMaxAge](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappcorspolicyproxy/clearmaxage.md) -- `method` -- Clears the MaxAge provisioning property.
    ```typescript
  clearMaxAge(): void
  ```
