Skip to content

Commit

Permalink
setup cors in bicep
Browse files Browse the repository at this point in the history
  • Loading branch information
Aibono1225 committed May 14, 2024
1 parent 697a084 commit 834f888
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,34 @@ 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: [
'*'
]
exposedHeaders: [
'*'
]
maxAgeInSeconds: 86400
}
]
}
}
}

resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = {
name: 'DeploymentScript'
location: location
Expand Down

0 comments on commit 834f888

Please sign in to comment.