FlowFuse / node-red-dashboard

https://dashboard.flowfuse.com
Apache License 2.0
158 stars 35 forks source link

Third-party nodes not loading when Dashboard hosted on proxy #1024

Open joepavitt opened 1 week ago

joepavitt commented 1 week ago

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

Environment

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

colinl commented 1 week ago

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

joepavitt commented 6 days ago

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

joepavitt commented 6 days ago

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