title: How to implement webpack-dev-server to share cookie from server-side rendered page?
body: <p>I am currently building reactjs application which uses server side cookie for authentication.
  I am trying using webpack-dev-server for the development.</p>
  
  <p>In current scenario, I have webpack-dev-server hosted on one domain and application server on other domain, but I need to share cookie in both of them.</p>
  
  <p><strong>I figured cookies do not work across different domains, but is there a way I can hack around this to make them share it for development environment ?</strong></p>
  
  <p>Currently, I am trying to embed an iframe of the devserver in url of application server. Still, since they have different hostnames cookies cannot be shared.
  Then, I figured out that cookies can be shared across subdomains but cannot figure out how to assign different ports under local host to different subdomain.</p>
  
  <p>Suggestion and feedback would be really appreciated.</p>