title: Access Rails session in create-react-app side
body: <p>I am following a tutorial which use a custom <code>Rails</code> app with <code>create-react-app</code>. <code>Rails</code> app running on <code>localhost:3000</code> and <code>create-react-app</code> running on <code>localhost:3001</code>. Everything works as expected but I have one question, is there anyway to access <code>Rails</code> session in <code>create-react-app</code> side? Currently when I want to develop I have to <code>build</code> my app then go to <code>Rails</code> side to check the result. If I want to build my app for every change the process is too slow. The problem is <code>session[:user_id]</code> is not accessible in <code>React</code> side. As I said it is a tutorial and I have never have experience with two servers running on different port. I have <code>cors-rack</code> rails and I have this setting in my <code>Initializer</code> :</p>
  
  <p>session_strore.rb: </p>
  
  <pre><code> if Rails.env === 'production'
    Rails.application.config.session_store :cookie_store, key: '_calendar-app', domain: :all
   else
    Rails.application.config.session_store :cookie_store, key: '_calendar-app'
  </code></pre>
  
  <p>It looks like the cookies sets for <code>React</code> side but <code>session[:user_id]</code> is not accessible. I just want to know is there any way to access <code>session[:user_id] in</code>React` side?</p>