title: Angular SSR is not displaying data from API in page source on browser for server deployed SSR but working on local prod build
body: <p>I have an angular 7 application and have made a universal version of the application (SSR for SEO purpose). </p>
  
  <p>The application runs all smooth like before, all data from API are displayed perfectly in local mode as well as in server. </p>
  
  <p>The issue is however when I view the "Page Source" on the browser the API data is not visible in browser if fetched from server. </p>
  
  <p><strong>package.json</strong></p>
  
  <pre><code> "scripts": {
      "ng": "ng",
      "start": "ng serve",
      "build": "ng build",
      "test": "ng test",
      "lint": "ng lint",
      "e2e": "ng e2e",
      "install:clean": "rm -rf node_modules/ &amp;&amp; rm -rf package-lock.json &amp;&amp; npm install &amp;&amp; npm start",
      "compile:server": "webpack --config webpack.server.config.js --progress --colors",
      "serve:ssr": "node dist/server",
      "build:ssr": "npm run build:client-and-server-bundles &amp;&amp; npm run compile:server",
      "build:client-and-server-bundles": "ng build --prod &amp;&amp; ng run nthexam:server:production",
    },
  </code></pre>
  
  <p>The command <code>npm run build:ssr:stage &amp;&amp; npm run serve:ssr</code> build the SSR application and it works perfectly fine in local machine.</p>
  
  <p><strong>ISSUE</strong></p>
  
  <p>The page source on the browser do not show API data if SSR is deployed in server (ubuntu)
  however for static content its works all fine. </p>
  
  <p>In local its works perfectly for static as well as API data, both are visible in page source in localhost. </p>
  
  <p>After some search: 
  I am using <strong>cloudflare</strong>, I tried by disabling all the cache, still of no use.</p>
  
  <p>I tried this : <a href="https://stackoverflow.com/questions/51972936/angular-universal-view-page-source-not-showing-api-data/51978030">Link</a>
  But in few pages where I don't have any console error even then it don't show the data in page source, and local it works perfectly fine irrespective of the stated error.</p>