Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control browserlink port or disable aspnetcore-browser-refresh.js #36085

Closed
Ponant opened this issue Sep 2, 2021 · 5 comments
Closed

Control browserlink port or disable aspnetcore-browser-refresh.js #36085

Ponant opened this issue Sep 2, 2021 · 5 comments
Assignees
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-hot-reload This issue is related to the Hot Reload feaature
Milestone

Comments

@Ponant
Copy link
Contributor

Ponant commented Sep 2, 2021

In .Net 6 Preview 7 (VS 2022), I have a razor page web app for customers that applies content security policy. The browser refresh works if I include connect-src in the policy. However, I would like to know:

-Is there a possibility to predict the port for the browser link, wss? I do not see it in launchsettings.json.
-Is there a way to disable this connection entirely, i.e. no broswer-refresh, no sockets etc?
-More generaly, the RP webapp seems to inject from _framework, where can this be controlled?
Thank you

@javiercn javiercn added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Sep 2, 2021
@mkArtakMSFT
Copy link
Member

@jodavis, @BillHiebert do you guys have answers for these questions?

//cc @pranavkm

@mkArtakMSFT mkArtakMSFT added the feature-hot-reload This issue is related to the Hot Reload feaature label Sep 2, 2021
@mkArtakMSFT
Copy link
Member

Ping @BillHiebert

@mkArtakMSFT mkArtakMSFT added this to the Discussions milestone Sep 7, 2021
@BillHiebert
Copy link

You can turn off support by seting this Tools\Option to false:

image

@Ponant
Copy link
Contributor Author

Ponant commented Sep 8, 2021

Thank you @BillHiebert , is the port for wss randomly chosen or can we get a hold of it?

@ghost
Copy link

ghost commented Nov 7, 2021

Thank you for contacting us. Due to a lack of activity on this discussion issue we're closing it in an effort to keep our backlog clean. If you believe there is a concern related to the ASP.NET Core framework, which hasn't been addressed yet, please file a new issue.

This issue will be locked after 30 more days of inactivity. If you still wish to discuss this subject after then, please create a new issue!

@ghost ghost closed this as completed Nov 7, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-hot-reload This issue is related to the Hot Reload feaature
Projects
None yet
Development

No branches or pull requests

4 participants