Skip to content

Commit 17230a0

Browse files
committed
Bicep: configure CORS on backend 'api' container app
1 parent 7c45f86 commit 17230a0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Labs/deploy/azuredeploy.bicep

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,16 @@ resource backendApiContainerApp 'Microsoft.App/containerApps@2023-05-01' = {
343343
latestRevision: true
344344
weight: 100
345345
}
346-
]
346+
]
347+
corsPolicy: {
348+
allowCredentials: false
349+
allowedHeaders: [
350+
'*'
351+
]
352+
allowedOrigins: [
353+
'*'
354+
]
355+
}
347356
}
348357
registries: [
349358
{

0 commit comments

Comments
 (0)