SamurAIGPT / Open-Custom-GPT

Create Custom GPT and add/embed on your site using Assistants api
https://customgpt.thesamur.ai
MIT License
1.59k stars 299 forks source link

Add location.protocol to embedded URL #36

Open mledwards opened 4 months ago

mledwards commented 4 months ago

Adding in the protocol (https://) for when embedding, so the URL isn't treated as a relative path on the website you're embedding it on

Before, if your website was https://mywebsite.com and the chatbot was on mychatbot.com, because the https:// is missing, the embedded URL would be treated as a relative path, so the iframe would try and load https://mywebsite.com/mychatbot.com/embed...