Open ijcd opened 7 years ago
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
Let's say we are developing client for some API server. As soon as we want to use elm-reactor
alongside real data from this server we are stuck because of CORS policies.
Right now to achieve this we have 2 options
elm-reactor
and switch to something like webpack-dev-server
which provides us with ability to proxy traffic. This solution leads us to step out of Elm stack which may result in worse developer experience and rely on tools which don't keep Elm in mind when doing design decisions. Also you immediately loose any feature elm-reactor can provide you.So as a possible solution elm-reactor
can provide flag for proxying all the traffic which do not relate to static assets. Here you can find same solutions provided by ember-cli (see ember server
) and create-react-app.
Add the ability to have a .elm-reactor conf file along w/ a --proxy option that allows you to proxy ajax requests to an api running elsewhere. See EmberCLI for an example.
https://ember-cli.com/user-guide/