Skip to content

A platform for community discussion. Free, open, simple.

DEV: Allow using incorrect headers with ember-cli (#15085)

Jarek Radosz704974da6ab4
diff --git a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
index 23e401e413b..4295eebc9d7 100644
--- a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
+++ b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
@@ -286,7 +286,7 @@ to serve API requests. For example:
baseURL = rootURL === "" ? "/" : cleanBaseURL(rootURL || baseURL);
- const rawMiddleware = express.raw({ type: "*/*", limit: "100mb" });
+ const rawMiddleware = express.raw({ type: () => true, limit: "100mb" });
app.use(rawMiddleware, async (req, res, next) => {
try {