how to enable Azure CORS for Bot framework? - azure-web-app-service

I am using bot framework directline hosted in website -html in azure web app. I have enabled the CORS setting as shown below.
But my Javascript is still showing the same issue when the url www.*.azurewebsites.net
When i run my application using npx serve command it works fine in local but once i uploaded the js and html files to the azure wep app service this issue happens.
Javascript

Related

Can't Deploy React Ts App to Azure App service

I am deploying ReactTs App to Azure App service by Azure Extension of Visual Studio Code.
Although it has been successfully deployed, but at the endpoint of the deploy link,
there is no change (the initial default interface of the App service).
This is the endpoint of the deploy link:
https://test-appservice-nev.azurewebsites.net/
At the endpoint provided by kudu (it shows the deployed ReactTS app), the display is correct. I don't understand why is that.
https://test-appservice-nev.scm.azurewebsites.net/wwwroot/
Post adding the below Startup command customer is able to see the published changes while he is browsing to the web app URL.
pm2 serve /home/site/wwwroot --spa --no-daemon
You can refer to this documentation for more information about React deployment on the app service.

Trouble to deploy an app in azure web app React

I'm triying to deploy a frontend app with Reac, the repository is hosted in github so I'm using github actions to continuous implementation.
The github actions says that the build and deploy are working correctly but when I tried to use the url http://<>.azurewebsites.net
enter image description here
it return 503 error "The service is unavailable"
You need to setup the (enterprise) application registry for this app to reflect what it does. Else the App Service cannot serve your application.
Look for the Platform Configuration in authentication blade.

Publishing a .net core 6.0.100-preview.4.21255.9 api app to Azure App service

I am attempting to publish a net core 6.0.100-preview.4.21255.9 api app to Azure App service.
The application publishes correctly from VS2019 as a self contained deployment. When hitting the url of the app service i get HTTP Error 500.32 - ANCM Failed to Load dll. I expect the swagger to come up.
If I create a web app with net core 6.0.100-preview.4.21255.9 and deploy that it works fine.
Any ideas on how do get this to work on azure app service?
Looks like this was my mistake. The API is working just fine.

Node js deployed files is not reflecting Azure WebApps

I have an web app running on azure with node js. Deployed some changes to the appservice. Also verified the changes in using kudu console. js file changes are already there. But nodejs app is still serving the previous api implementation.
I resterted the app service, still no luck.

Azure - Making an API App available to a Logic App

I've created a web application API with a swagger interface that I've deployed as an API App to Azure.
When creating a Logic App I can find my API App but whenever I try to use it I get the following error:
Failed to fetch swagger. Ensure you have CORS enabled on the endpoint
and are calling an HTTPS endpoint.
I'm using the default https url for the API definition in the API App:
https://microsoft-SOME-LONG-MS-INTERNAL-ID.azurewebsites.net/swagger/docs/v1
The swagger docs have been provided in my C# web API application through Swashbuckle.
For CORS I've set a single * item.
This didn't seem sufficient for the Logic App to access the API App I then configured Authentication / Authorization for the API App to use Azure Active Directory (express), creating an AD Azure App.
I believe the issue will be one of configuring security which is all pretty new to me in Azure. I'd like to make the API App inaccessible externally, but available to Web Apps and Logic Apps within my Azure subscription.
I've not added any authentication mechanism to the ASP.NET web application itself as I figured the web application would effectively be sitting in a private network on Azure. Perhaps this is a bad assumption and I need to add authentication to allow Azure AD to work?
Any pointers / suggestions?
Turns out I needed to update the Azure SDK for Visual Studio. I had an older version that was deploying a preview Api App which resulted in a "Api app host" type being deployed rather that an "API app" type.
Everything works after the update and I've found some documentation for securing the API App and making it available in the Logic App - https://azure.microsoft.com/en-us/documentation/articles/app-service-logic-custom-hosted-api/

Resources