title: How can I share a token variable from my main page to iframe other than using a post message?
body: <p>I need to know how to share a variable in parent window to iframe. <br/>
  My scenario is this, <br/>
  I have <strong>2 angular5 application</strong> say <b>A </b>and <b>B </b>.<br/>
  B is loaded as an Iframe to A.<br/>
  Authentication is done in A and I get an access token which i need to pass to B.<br/>
  These are the things I tried. <br/></p>
  
  <ol>
  <li>postMessage sent the token but as it is async event, B doesn't wait for it.</li>
  <li>Tried passing token as a header by making an AJAX get request with response type 
  as blob but failed as only the index file is loaded not the angular chunks.</li>
  </ol>