Add your website as an allowed URL
To configure allowed websites for your existing web experience, you can use the Amazon Q Business console or the Amazon Q Business API.
Note
-
The allowed base URLs must begin with
https://orhttp://. -
You must only submit a base URL, and not the full path. For example,
https://docs.aws.amazon.com.
-
Sign in to the Amazon Q console
. -
Choose Applications, then select the name of your application from the list.
Note
-
Copy and save the Deployed URL for your Amazon Q application. You'll need this URL when you embed the web experience on your website.
-
For anonymous applications, the Deployed URL must be generated every time using the
CreateAnonymousWebExperienceUrlAPI operation. For more information, see Share an anonymous web experience.
-
-
From the left navigation pane, choose Amazon Q embedded under the Enhancements section.
-
On the main page, choose Add allowed website and enter the base URL of the website where you'll be embedding the Amazon Q Business web experience.
aws qbusiness update-web-experience \ --application-id application-id \ --web-experience-id web-experience-id \ --originsoriginsaws qbusiness get-web-experience \ --application-id application-id \ --web-experience-id experience-id
The get-web-experience operation will return the
defaultEndpoint, which is the web experience URL that you will
embed in your website.