figwheel

general discussion about figwheel, specific discussions in #figwheel-main and #lein-figwheel
2017-12-11T21:31:42.000140Z

I have a server running on port 8080, and have my CLJs being served up/compiled via figwheel. However I'm running into CORS issues because the CLJS can't contact my backend server. What's the best way to disable this during development. In production the backend process will be serving up everything.

2017-12-11T21:31:53.000419Z

I can't embed figwheel in my app directly since this is not a ring app.

hagmonk 2017-12-11T23:12:22.000278Z

so ... figwheel is not supposed to blow away everything on the page when it starts, right?

hagmonk 2017-12-11T23:13:20.000189Z

I am loading a grafana module I've built in cljs, and when figwheel connects, the entire dom is nuked aside from the script tags for the cljs stuff

hagmonk 2017-12-11T23:24:58.000227Z

@tbaldridge figwheel lets you specify a ring-handler, is there a ring middleware that adds the necessary CORS goop?

2017-12-11T23:53:28.000184Z

so is there a way to add middleware to figwheel via that? What I really want is to inject a few headers into what figwheel serves up