Fork me on GitHub
#figwheel
<
2017-12-11
>
tbaldridge21:12:42

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.

tbaldridge21:12:53

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

hagmonk23:12:22

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

hagmonk23:12:20

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

hagmonk23:12:58

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

tbaldridge23:12:28

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