[GH-ISSUE #4232] [BUG]: i can't use embed #2691

Closed
opened 2026-02-22 18:30:48 -05:00 by yindo · 1 comment
Owner

Originally created by @bechir2000 on GitHub (Aug 1, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4232

How are you running AnythingLLM?

All versions

What happened?

Hello,

I am trying to embed the AnythingLLM chat widget on my website using the following script:
<script data-embed-id="c3a060d3-a5cd-4e7d-93e9-8a59bbfd1cd4" data-base-api-url="https://****/anything-llm/embed" src="https://****/anything-llm/anythingllm-chat-widget.min.js"> </script>

However, the widget does not load, and the browser console shows a “net::ERR_BLOCKED_BY_ORB” error. Upon inspecting the network response, I noticed that the script file is being served with the MIME type text/html instead of application/javascript.

Browsers require external JavaScript files to be served with the correct MIME type (application/javascript). If the server returns text/html, the browser blocks the script for security reasons.

Could you please update the server configuration to serve anythingllm-chat-widget.min.js with the MIME type application/javascript? This should resolve the issue and allow the widget to load correctly.

Thank you!

Are there known steps to reproduce?

No response

Originally created by @bechir2000 on GitHub (Aug 1, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4232 ### How are you running AnythingLLM? All versions ### What happened? Hello, I am trying to embed the AnythingLLM chat widget on my website using the following script: `<script data-embed-id="c3a060d3-a5cd-4e7d-93e9-8a59bbfd1cd4" data-base-api-url="https://****/anything-llm/embed" src="https://****/anything-llm/anythingllm-chat-widget.min.js"> </script>` However, the widget does not load, and the browser console shows a “net::ERR_BLOCKED_BY_ORB” error. Upon inspecting the network response, I noticed that the script file is being served with the MIME type text/html instead of application/javascript. Browsers require external JavaScript files to be served with the correct MIME type (application/javascript). If the server returns text/html, the browser blocks the script for security reasons. Could you please update the server configuration to serve anythingllm-chat-widget.min.js with the MIME type application/javascript? This should resolve the issue and allow the widget to load correctly. Thank you! ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:30:48 -05:00
yindo closed this issue 2026-02-22 18:30:48 -05:00
Author
Owner

@timothycarambat commented on GitHub (Aug 1, 2025):

I am pretty sure this not a bug we need to solve, it is more likely a config detail of your deployment and how you are running anythingllm and/or your hosting site that features the embed.

The embed works fine for all our hosted and self-hosted deployments so it is something on the deployment side. Seeing that you are serving the content from a path I would imagine there is something there in your web server config.

Just deployed AnythingLLM on a server, then put the embed on another website - works as one would expect.

Image Image
@timothycarambat commented on GitHub (Aug 1, 2025): I am pretty sure this not a bug we need to solve, it is more likely a config detail of your deployment and how you are running anythingllm and/or your hosting site that features the embed. The embed works fine for all our hosted and self-hosted deployments so it is something on the deployment side. Seeing that you are serving the content from a path I would imagine there is something there in your web server config. Just deployed AnythingLLM on a server, then put the embed on another website - works as one would expect. <img width="1628" height="913" alt="Image" src="https://github.com/user-attachments/assets/f6273d94-e404-45b8-b640-bab0ef9ba5de" /> <img width="1520" height="888" alt="Image" src="https://github.com/user-attachments/assets/78a2f0ce-4a9f-4e98-a6b6-68867d8caddc" />
yindo changed title from [BUG]: i can't use embed to [GH-ISSUE #4232] [BUG]: i can't use embed 2026-06-05 14:48:00 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2691