[PR #2474] [MERGED] Fix .js mimetype on Windows 11 #7807

Closed
opened 2025-11-11 17:36:29 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/2474
Author: @baptistecs
Created: 5/21/2024
Status: Merged
Merged: 5/22/2024
Merged by: @tjbck

Base: devHead: patch-1


📝 Commits (2)

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 backend/main.py (+2 -0)

📄 Description

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of ""text/plain"". Strict MIME type checking is enforced for module scripts per HTML spec.

Before:

Screenshot 2024-05-21 230604

After:

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/2474 **Author:** [@baptistecs](https://github.com/baptistecs) **Created:** 5/21/2024 **Status:** ✅ Merged **Merged:** 5/22/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`d43ee0f`](https://github.com/open-webui/open-webui/commit/d43ee0fc5b018cec183de99e8047472c454737ae) Merge pull request #2465 from open-webui/dev - [`ecb656a`](https://github.com/open-webui/open-webui/commit/ecb656af70c54d1361926b5742a172dd56793aa6) Fix .js mimetype on Windows 11 ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/main.py` (+2 -0) </details> ### 📄 Description > Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of ""text/plain"". Strict MIME type checking is enforced for module scripts per HTML spec. Before: ![Screenshot 2024-05-21 230604](https://github.com/open-webui/open-webui/assets/50966051/7d59e84d-d6cb-46cb-8de9-655db2779a31) After: ![image](https://github.com/open-webui/open-webui/assets/50966051/46af5bbd-0c42-4986-925a-a30990a04c6a) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:36:29 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7807