2

I want to set Specific domains in Azure Qna maker app cors settings, not *. Can any one let me know what is the required domains for that, as i do not find any documentation regarding this online.

sumit sharma
  • 127
  • 1
  • 11

2 Answers2

2

When you create your QnA Maker resource, you are creating an Application (web app) in order to host your endpoint for queries:

QnA Maker creation

This is due to the architecture which is the following:

QnA Architecture

So if you want to implement specific CORS rules, go the your Web App and set CORS rules in the dedicated tab:

Cors setup


Additional edit:

Based on the comments (thanks @sumit sharma), the necessary domains are:

  • qnamaker-service.trafficmanager.net
  • qnamaker.ai
Nicolas R
  • 13,812
  • 2
  • 28
  • 57
  • Thanks for the detailed answer, but I need the domain or website name which I can put here ( which may be QNA maker is using internally, I guess here it will be qnamaker.ai ) ? :@nicolas-r – sumit sharma Oct 04 '19 at 11:16
  • For which use? What will consume your QnA Maker? – Nicolas R Oct 04 '19 at 11:31
  • My Bot which is using bot framework sdk. I already tried putting my bot URL there in QNA maker, but it needs some more domains to be allowrd. @Nicolas-r – sumit sharma Oct 07 '19 at 07:59
  • 1
    @sumitsharma Did you ever get this resolved? I'm being requested to add specific domains in CORS but I'm concerned that I will be breaking my bot. – billoverton Apr 16 '20 at 14:06
  • 2
    @billoverton Yes, you need to put those 2 domains in **CORS settings** and you are good to go. https://qnamaker-service.trafficmanager.net and https://www.qnamaker.ai – sumit sharma Apr 20 '20 at 09:01
1

The answer from Nicholas R gives you everything you need to solve this issue except the domains to add (tried to edit by edit queue is full). If you are looking for the domains to add here, it should be at a minimum https://qnamaker-service.trafficmanager.net and https://www.qnamaker.ai. I added these and have not had any issues with the service since removing "allow all".

billoverton
  • 2,705
  • 2
  • 9
  • 32