aws-lex-web-ui
aws-lex-web-ui copied to clipboard
chatbot loading time out
S3 has been hosted with sample application, CORS policy has been configured properly to load. Me and my team working on local host so parentOrigin is different within team. Below configuration has been provided while instantiating chat bot loader. Which should override the configuration settings and change parentOrigin. var chatbotUiconfig = { ui: { parentOrigin: 'http://localhost:5734' }, iframe: { // origin hosting the HTML file that will be embedded in the iframe iframeOrigin: 'http://cloudhrbot.s3-eu-west-1.amazonaws.com' }, lex: { sessionAttributes: { token: token, realmurl: keycloakUrl, hosturl: host } } };
Default JSON file hosted in S3 contains below configuration.
"ui": {
"parentOrigin": "http://localhost:5735",
"toolbarTitle": "Talk to Me",
"toolbarLogo": "",
"positiveFeedbackIntent": "",
"negativeFeedbackIntent": "",
"helpIntent": "help",
"enableLogin": false,
"AllowSuperDangerousHTMLInMessage": true,
"shouldDisplayResponseCardTitle": false,
"pushInitialTextOnRestart": false,
"directFocusToBotInput": false,
"showDialogStateIcon": false
},
"iframe": {
"iframeOrigin": "http://cloudhrbot.s3.eu-west-1.amazonaws.com",
"shouldLoadIframeMinimized": false,
"iframeSrcPath": "/index.html#/?lexWebUiEmbed=true"
}
However I am getting "chatbot loading time out" and no clue about same.

When application configured to use http://localhost:5735 IFrame is getting launch successfully and below are console log from same.

Not sure how I can change parentOrigin runtime and also loader is taking same in account.
Hi @himanshuladola , Have you solved this issue?