RocketChat / RocketChat/Rocket.Chat
Livechat widget fails - Generating invalid URLS
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
Livechat widget fails to render
Refused to execute script from 'https://mydomain/livechat/livechat/0.chunk.f8d50.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Steps to reproduce:
- Enable omnichannel
- embed widget code
- view page
Expected behavior:
Rendering of livechat widget
Actual behavior:
Widget fails to render
Server Setup Information:
Official Snap Latest
installed: 5.0.6 (1526) 284MB -
NGINX reverse proxy
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with omnichannel enabled, the embedded livechat widget, and the Official Snap behind an NGINX reverse proxy. Inspect the widget's generated chunk URL and the network response for the reported MIME type; done means the widget renders and its JavaScript chunks are served from valid URLs with an executable MIME type.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nginx, typescript
- Domain
- frontend, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100