Forum Discussion
How to pass trusted Origin in Directline enhanced authentication
You may be able to achieve this by adding an Azure CLI task to your pipeline.
From here you have two options:
1) Use the az resource update command:
az resource update --name web --resource-group myResourceGroup --namespace Microsoft.Web --resource-type config --parent sites/<app_name> --set properties.cors.allowedOrigins="['http://localhost:5000']" --api-version 2015-06-01
Tutorial: Host RESTful API with CORS - Azure App Service | Microsoft Docs
2) Use the az webapp cors command:
az webapp cors add -g {myRG} -n {myAppName} --allowed-origins https://myapps.com
az webapp cors | Microsoft Docs
Thanks,
Prasad Das
--------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate
We have tried the Second option by updating the url of web app in which the application is hosted and also tried the below urls,
https://login.microsoftonline.com
https://directline.botframework.com
https://token.botframework.com
But still its not working.
Can we know which are the trusted origins we need to provide.
- Prasad_Das-MSFTAug 05, 2022
Microsoft
Lakshmi_145 -With enhanced authentication options, you can statically specify the trusted domains (trusted origins) list in the Direct Line configuration page.
Connect a bot to Direct Line in Bot Framework SDK - Bot Service | Microsoft Docs- Lakshmi_145Aug 08, 2022Iron Contributor
- Prasad_Das-MSFTAug 08, 2022
Microsoft
Lakshmi_145 - We are checking with engineering team. We will inform you once we have any update. Thanks!
- Lakshmi_145Aug 05, 2022Iron Contributor
We have tried this already. Enabled Enhanced authentication option and provided the links which I mentioned and also the link of ui url where the application is hosted. But still we are getting the validation code while signing in