node-red-dashboard icon indicating copy to clipboard operation
node-red-dashboard copied to clipboard

Third-party nodes not loading when Dashboard hosted on proxy

Open joepavitt opened this issue 1 year ago • 4 comments

Current Behavior

Details: https://discourse.nodered.org/t/d2-third-party-nodes-do-not-appear-blocked-due-to-forbidden-mime-text-html/88916

Reported error:

/resources/@colinl/node-red-dashboard-2-ui-gauge-classic/ui-gauge-classic.umd.js” zostało zablokowane z powodu niedozwolonego typu MIME („text/html”).`

I suspect we have a hardcoded path when loading third-party nodes

Expected Behavior

Third party widgets should be loading as core nodes do.

Steps To Reproduce

  • Will need to setup an nginx proxy
  • Install a third-party widget

Environment

  • Dashboard version:
  • Node-RED version:
  • Node.js version:
  • npm version:
  • Platform/OS:
  • Browser:

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

joepavitt avatar Jun 25 '24 10:06 joepavitt

For the record, I use Cloudflare Zero Trust as a proxy and I don't see the problem there.

colinl avatar Jun 25 '24 12:06 colinl

Link to an nginx config we've had working locally before: https://github.com/FlowFuse/node-red-dashboard/issues/526#issuecomment-1956334415

joepavitt avatar Jun 26 '24 09:06 joepavitt

Other reporting that it works okay with nginx, and that Docker may be the problem: https://discourse.nodered.org/t/d2-third-party-nodes-do-not-appear-blocked-due-to-forbidden-mime-text-html/88916/8?u=joepavitt

joepavitt avatar Jun 26 '24 11:06 joepavitt

See also #1615 which I think may hold the answer, or at least part of it.

colinl avatar Feb 11 '25 21:02 colinl