I have an ASP.NET Core 3.1 React app created with dotnet new react.
I want to be able to embed some configuration values inside index.html so that I can use those in the React app.
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.
Is there a way to inject some javascript code from the ASP.NET Core app inside index.html like is described in this official CRA docs page?