title: How to inject data from the server in index.html in an ASP.NET Core 3 React app
body: <p>I have an ASP.NET Core 3.1 React app created with <code>dotnet new react</code>.</p>
  
  <p>I want to be able to embed some configuration values inside <code>index.html</code> so that I can use those in the React app.</p>
  
  <p>I know I could add a Controller to expose these config values and fetch them during client app bootstrap but I want to avoid that request if it's possible and just embed it directly when the server is serving the index.html on the first request/refresh.</p>
  
  <p>Is there a way to inject some javascript code from the ASP.NET Core app inside <code>index.html</code> like is described in <a href="https://create-react-app.dev/docs/title-and-meta-tags#injecting-data-from-the-server-into-the-page" rel="nofollow noreferrer">this official CRA docs page</a>?</p>