diff --git a/infra/main.bicep b/infra/main.bicep index e0981ce7f..12ff51367 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -50,6 +50,35 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2021-06-01' = { } } +resource blobServices 'Microsoft.Storage/storageAccounts/blobServices@2022-09-01' = { + name: 'default' + parent: storageAccount + properties: { + cors: { + corsRules: [ + { + allowedHeaders: [ + '*' + ] + allowedMethods: [ + 'GET' + 'HEAD' + 'OPTIONS' + ] + allowedOrigins: [ + 'https://ssw.com.au' + 'https://www.ssw.com.au' + ] + exposedHeaders: [ + '*' + ] + maxAgeInSeconds: 86400 + } + ] + } + } +} + resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = { name: 'DeploymentScript' location: location