Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions infra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,6 @@ az deployment group create \
4. **Manage access** — Add or remove users via Entra security groups
(`allowedGroupObjectIds`). Each group must also be assigned to the enterprise app.

5. **Set CORS origins** for production (the Bicep template does not set this):
```bash
az containerapp update -n <appName> -g <rg> \
--set-env-vars "PYRIT_CORS_ORIGINS=https://$FQDN"
```

## Access the GUI

```bash
Expand Down
7 changes: 7 additions & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,13 @@ resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
name: 'AZURE_CLIENT_ID'
value: managedIdentity.properties.clientId
}
// CORS origin for the SPA. The ACA-generated FQDN is deterministic
// (<appName>.<envDefaultDomain>), so we compute it from upstream
// resources rather than self-referencing containerApp.
{
name: 'PYRIT_CORS_ORIGINS'
value: 'https://${appName}.${acaEnvironment.properties.defaultDomain}'
}
]
}
]
Expand Down
Loading