Skip to content

Commit e60b83c

Browse files
committed
add cors config to api app service
1 parent 88d87c1 commit e60b83c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Labs/deploy/azuredeploy.bicep

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,12 @@ resource appServiceApi 'Microsoft.Web/sites@2022-03-01' = {
310310
alwaysOn: true
311311
httpLoggingEnabled: true
312312
appCommandLine: 'uvicorn --host "0.0.0.0" --port 443 main:app --reload'
313+
cors: {
314+
allowedOrigins: [
315+
'*'
316+
]
317+
supportCredentials: false
318+
}
313319
}
314320
}
315321
}

0 commit comments

Comments
 (0)