Skip to content

Commit

Permalink
CopilotChat: deploy webapp typo fix (#1614)
Browse files Browse the repository at this point in the history
Fixes missing "$" in deploy-webapp.ps1, causing a failure in CORS
configuration.
  • Loading branch information
adrianwyatt authored Jun 20, 2023
1 parent f83ae02 commit 33858a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/apps/copilot-chat-app/deploy/deploy-webapp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ if ($LASTEXITCODE -ne 0) {

$origin = "https://$webappUrl"
Write-Host "Ensuring CORS origin '$origin' to webapi '$webapiName'..."
if (-not ((az webapp cors show --name webapiName --resource-group $ResourceGroupName --subscription $Subscription | ConvertFrom-Json).allowedOrigins -contains $origin)) {
if (-not ((az webapp cors show --name $webapiName --resource-group $ResourceGroupName --subscription $Subscription | ConvertFrom-Json).allowedOrigins -contains $origin)) {
az webapp cors add --name $webapiName --resource-group $ResourceGroupName --subscription $Subscription --allowed-origins $origin
}

Expand Down

0 comments on commit 33858a4

Please sign in to comment.