RocketChat / RocketChat/Rocket.Chat

Livechat widget fails - Generating invalid URLS

Open
#26,955 4 comments 0 reactions 0 assignees View on GitHub

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:
  1. Enable omnichannel
  2. embed widget code
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.