René's URL Explorer Experiment


Title: Fix origin check with default ports and X-Forwarded-Port by harshbhx · Pull Request #8059 · coder/code-server · GitHub

Open Graph Title: Fix origin check with default ports and X-Forwarded-Port by harshbhx · Pull Request #8059 · coder/code-server

X Title: Fix origin check with default ports and X-Forwarded-Port by harshbhx · Pull Request #8059 · coder/code-server

Description: VS Code in the browser. Contribute to coder/code-server development by creating an account on GitHub.

Open Graph Description: Fixes #6166 Summary The origin check now treats a default port (:443 for https, :80 for http) as no port, and uses X-Forwarded-Port when X-Forwarded-Host has no port. Everything else is still an ex...

X Description: Fixes #6166 Summary The origin check now treats a default port (:443 for https, :80 for http) as no port, and uses X-Forwarded-Port when X-Forwarded-Host has no port. Everything else is still an ex...

Opengraph URL: https://github.com/coder/code-server/pull/8059

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0f0b7557-b220-e979-cc4f-8fdeb97b3ebd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBBAC:26BC2B:3B4F12:53527A:6B043FF6
html-safe-nonceb52a3e4b1da2f97bf4bcc8a79176b512f0e9eddb9331c21d719b360f53da2f70
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkFDOjI2QkMyQjozQjRGMTI6NTM1MjdBOjZCMDQzRkY2IiwidmlzaXRvcl9pZCI6Ijc2MzUzNTY1NjAxMTM1NDkzMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1c20f8d2c94aae00225b0f5d8a659ffd8e06510d8e0589511a20a93818f8f20f
hovercard-subject-tagpull_request:4879669652
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/code-server/8059/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2035b3f251d5d6218cb742a9a4dd965082c905f26730f485b73fe339b233666f/coder/code-server/pull/8059
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2035b3f251d5d6218cb742a9a4dd965082c905f26730f485b73fe339b233666f/coder/code-server/pull/8059
og:image:altFixes #6166 Summary The origin check now treats a default port (:443 for https, :80 for http) as no port, and uses X-Forwarded-Port when X-Forwarded-Host has no port. Everything else is still an ex...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameharshbhx
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-cache
go-importgithub.com/coder/code-server git https://github.com/coder/code-server.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id172953845
octolytics-dimension-repository_nwocoder/code-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id172953845
octolytics-dimension-repository_network_root_nwocoder/code-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/coder/code-server/pull/8059#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fpull%2F8059
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fpull%2F8059
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fcode-server
Reloadhttps://github.com/coder/code-server/pull/8059
Reloadhttps://github.com/coder/code-server/pull/8059
Reloadhttps://github.com/coder/code-server/pull/8059
coderhttps://github.com/coder
code-serverhttps://github.com/coder/code-server
Codehttps://github.com/coder/code-server
Issues147 (147)https://github.com/coder/code-server/issues
Pull requests15 (15)https://github.com/coder/code-server/pulls
Discussionshttps://github.com/coder/code-server/discussions
Actionshttps://github.com/coder/code-server/actions
Projectshttps://github.com/coder/code-server/projects
Security and quality3 (3)https://github.com/coder/code-server/security
Insightshttps://github.com/coder/code-server/insights
https://github.com/coder/code-server
code-asherhttps://github.com/code-asher
coder:mainhttps://github.com/coder/code-server/tree/main
harshbhx:fix/6166-origin-ignore-porthttps://github.com/harshbhx/code-server/tree/fix/6166-origin-ignore-port
Conversationhttps://github.com/coder/code-server/pull/8059
Commits1 (1)https://github.com/coder/code-server/pull/8059/commits
Checkshttps://github.com/coder/code-server/pull/8059/checks
Files changedhttps://github.com/coder/code-server/pull/8059/files
Fix origin check with default ports and X-Forwarded-Porthttps://github.com/coder/code-server/pull/8059#top
code-asherhttps://github.com/code-asher
coder:mainhttps://github.com/coder/code-server/tree/main
harshbhx:fix/6166-origin-ignore-porthttps://github.com/harshbhx/code-server/tree/fix/6166-origin-ignore-port
https://github.com/harshbhx
harshbhxhttps://github.com/harshbhx
Oct 15, 2026https://github.com/coder/code-server/pull/8059#issue-5873720723
#6166https://github.com/coder/code-server/issues/6166
the issue discussionhttps://github.com/coder/code-server/issues/6166#issuecomment-6179353282
src/node/http.ts#L406https://github.com/coder/code-server/blob/f07405cba33179e6d2058af07ca2be290f19b262/src/node/http.ts#L406
@smerschjohannhttps://github.com/smerschjohann
Please reload this pagehttps://github.com/coder/code-server/pull/8059
https://github.com/harshbhx
Normalize default ports and use X-Forwarded-Port in the origin checkhttps://github.com/coder/code-server/pull/8059/commits/7e16bbf939435fe954560dcc0678a4765961e691
7e16bbfhttps://github.com/coder/code-server/pull/8059/commits/7e16bbf939435fe954560dcc0678a4765961e691
https://example.com`https://example.com`
coder#6166https://github.com/coder/code-server/issues/6166
https://github.com/harshbhx
harshbhxhttps://github.com/harshbhx
code ownerhttps://github.com/coder/code-server/blob/f07405cba33179e6d2058af07ca2be290f19b262/.github/CODEOWNERS#L1
October 15, 2026 20:50https://github.com/coder/code-server/pull/8059#event-33377423357
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
October 15, 2026 20:50https://github.com/coder/code-server/pull/8059#event-33377423544
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Oct 15, 2026 https://github.com/coder/code-server/pull/8059#pullrequestreview-5539746526
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/coder/code-server/pull/8059#pullrequestreview-5539746526
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/code-server/pull/8059
https://github.com/harshbhx
harshbhxhttps://github.com/harshbhx
Oct 17, 2026https://github.com/coder/code-server/pull/8059#issuecomment-6238527952
@code-asherhttps://github.com/code-asher
#6166https://github.com/coder/code-server/issues/6166
Please reload this pagehttps://github.com/coder/code-server/pull/8059
https://github.com/harshbhx
harshbhxhttps://github.com/harshbhx
Oct 25, 2026https://github.com/coder/code-server/pull/8059#issuecomment-6400436283
@code-asherhttps://github.com/code-asher
#6166https://github.com/coder/code-server/issues/6166
Please reload this pagehttps://github.com/coder/code-server/pull/8059
https://github.com/code-asher
code-asherhttps://github.com/code-asher
Oct 27, 2026 https://github.com/coder/code-server/pull/8059#pullrequestreview-5660916315
View reviewed changes https://github.com/coder/code-server/pull/8059/files/7e16bbf939435fe954560dcc0678a4765961e691
code-asherhttps://github.com/code-asher
https://github.com/coder/code-server/pull/8059#pullrequestreview-5660916315
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/code-server/pull/8059
src/node/http.tshttps://github.com/coder/code-server/pull/8059/files/7e16bbf939435fe954560dcc0678a4765961e691#diff-75505c590327def24759159fb14d6c70549921bcd413b5a8e0268849b5f5840c
code-asherhttps://github.com/code-asher
Oct 27, 2026https://github.com/coder/code-server/pull/8059#discussion_r4383990635
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/code-server/pull/8059
https://github.com/code-asher
code-asherhttps://github.com/code-asher
89cba83https://github.com/coder/code-server/commit/89cba83cb461ce3dad8e0b065041bf786603b1b3
Oct 27, 2026https://github.com/coder/code-server/pull/8059#event-34319064520
Please reload this pagehttps://github.com/coder/code-server/pull/8059
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Nov 8, 2026 https://github.com/coder/code-server/pull/8059#ref-pullrequest-6011835111
build(deps): update image ghcr.io/coder/code-server ( 4.141.0 ➜ 4.145.2 ) rcdailey/home-ops#1563 https://github.com/rcdailey/home-ops/pull/1563
https://github.co/hiddenchars
https://github.com/coder/code-server/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fpull%2F8059
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
Learn more about Copilot code review.https://gh.io/copilot-code-review-docs
https://github.com/coder/code-server/pull/8059/files/7e16bbf939435fe954560dcc0678a4765961e691
https://github.com/code-asher
code-asher https://github.com/code-asher
https://github.com/coder/code-server/pull/8059/files/7e16bbf939435fe954560dcc0678a4765961e691
Please reload this pagehttps://github.com/coder/code-server/pull/8059
Account for hosts with/without ports in origin check https://github.com/coder/code-server/issues/6166
Please reload this pagehttps://github.com/coder/code-server/pull/8059
https://github.com/harshbhx
https://github.com/code-asher
https://github.com/apps/copilot-pull-request-reviewer
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.