Skip to content

SpaProxy should not inject middleware with ASPNETCORE_HOSTINGSTARTUPASSEMBLIES #46780

Open
@jez9999

Description

@jez9999

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I wanted to post in this bug: #45130

But it's been locked to me even though I created it. I was asked there by @javiercn as to what problems I run into with the new ASP.NET SPA approach that puts express.js in front of the ASP.NET server, so for the record I'd like to note two things:

  1. I like to be able to modify the index.html page in the pipeline so that I can inject JavaScript into the page to provide configuration information from the ASP.NET app
  2. I like to be able to selectively inject JS into the index.html page so that I can eg. only inject Google Analytics on the production server.

It seems to me that unless ASP.NET has ultimate control over serving the index.html page, I'm unable to do that with the new mechanism.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions