Skip to content

Fix Blazor template HTTPS profile to include HTTP URL #62853

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 22, 2025

The Blazor Web template's HTTPS launch profile was missing the HTTP URL in its applicationUrl configuration, making it inconsistent with other ASP.NET Core templates.

Problem:
In src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/Properties/launchSettings.json, the HTTPS profile only had:

"applicationUrl": "https://localhost:5501"

Solution:
Updated to include both HTTPS and HTTP URLs for consistency:

"applicationUrl": "https://localhost:5501;http://localhost:5500"

This matches the pattern used by all other ASP.NET Core templates:

  • StarterWeb: "applicationUrl": "https://localhost:5001;http://localhost:5000"
  • EmptyWeb: "applicationUrl": "https://localhost:5001;http://localhost:5000"
  • WebAPI: "applicationUrl": "https://localhost:5001;http://localhost:5000"
  • GrpcService: "applicationUrl": "https://localhost:5001;http://localhost:5000"

The LocalhostTld conditional branch was already correct and included both URLs.

Fixes #62852.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copy link
Contributor

Greetings human! You've submitted a PR that modifies code that is shared with https://github.com/dotnet/runtime . Please make sure you synchronize this code with the changes in that repo!

@Copilot Copilot AI changed the title [WIP] [Templates] Https changes broke the application URL for blazor Fix Blazor template HTTPS profile to include HTTP URL Jul 22, 2025
@Copilot Copilot AI requested a review from javiercn July 22, 2025 09:06
Copilot finished work on behalf of javiercn July 22, 2025 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Templates] Https changes broke the application URL for blazor
2 participants