-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing import Chatbot from Location #25
Comments
If you open the Developer tools in your browser, you should see "Access to script file://dist/web.js from origin 'null' has been blocked by CORS policy..." or something similar. |
Hey there - I've run through the following
Copy GitHub repo to within the parent Flowise repo location on my machine. CD'd to the new folder and run through the 'yarn install' and 'yarn build'.
Everything shows as ok - no errors seen.
I restart the 'yarn start' command from the parent Flowise repo folder and load up the service. All ok at this point.
I navigate to one of my flow and copy the embed scrip. Adjust the following on my reference HTML page:
<script type="module"> import Chatbot from "./web.js"; Chatbot.initFull({ chatflowid: "###################", //obviously I've hashed out the real ID apiHost: "http://localhost:4321", //yes I've also customised the port which this runs on }); </script>Nothing happens - I reload the page and the popup doesn't show nor does the icon.
I revert the import chatbot from to the provided link on the flowise UI and it works ok.
I want to use the embed so I can customise the chat bubble and change some of the branding elements at the bottom.
Any help would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: