-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Hi,
I've jumped onto webpack
and the webpack-dev-server
quite recently and have been really enjoying developing with it.
Lately I ran into a scenario in which we have multiple (3-4) sub-projects all running an own webpack-dev-server
on different ports. The bundles are then included in on one of the projects (being served over a dev-server) having an aggregating index.html
including the other projects' bundles. Whenever another sub-project now starts requesting resources over its contentBase it obviously runs into CORS issues as its not running under the same port.
I've seen the dev-server having a header
configuration option. Still, as far as I understand, this header is only for a request to the bundle not the index.html
nor any other static resources which are being served via serveMagicHtml()
in the lib/Server.js
. Is there any way of accomplishing this through configuration or is it a scenario which is just not intended?
Cheers.