René's URL Explorer Experiment


Title: `tunnelRoute` passes through Strict-Transport-Security header, enabling HSTS on users' domains · Issue #8931 · getsentry/sentry-javascript · GitHub

Open Graph Title: `tunnelRoute` passes through Strict-Transport-Security header, enabling HSTS on users' domains · Issue #8931 · getsentry/sentry-javascript

X Title: `tunnelRoute` passes through Strict-Transport-Security header, enabling HSTS on users' domains · Issue #8931 · getsentry/sentry-javascript

Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...

Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...

X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8931

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`tunnelRoute` passes through Strict-Transport-Security header, enabling HSTS on users' domains","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\n### Which SDK are you using?\r\n\r\n@sentry/nextjs\r\n\r\n### SDK Version\r\n\r\n7.64.0\r\n\r\n### Framework Version\r\n\r\nNext.js 13.4.19\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\nOn the server:\r\n\r\n```ts\r\nSentry.init({\r\n  dsn: process.env.NEXT_PUBLIC_SERVER_SENTRY_DSN,\r\n  tracesSampleRate: 1,\r\n  debug: false,\r\n  release: process.env.NEXT_PUBLIC_SENTRY_RELEASE,\r\n});\r\n```\r\n\r\nOn the client:\r\n\r\n```ts\r\nSentry.init({\r\n  dsn: process.env.NEXT_PUBLIC_SERVER_SENTRY_DSN,\r\n  tracesSampleRate: 1,\r\n  debug: false,\r\n  replaysOnErrorSampleRate: 1.0,\r\n  replaysSessionSampleRate: 0.1,\r\n  integrations: [\r\n    new Sentry.Replay({\r\n      maskAllText: true,\r\n      blockAllMedia: true,\r\n    }),\r\n  ],\r\n  release: process.env.NEXT_PUBLIC_SENTRY_RELEASE,\r\n  tracePropagationTargets: [\r\n    \"http://localhost:3000\",\r\n    \"https://bowser.dev.ystv.co.uk\",\r\n    \"https://bowser.ystv.co.uk\",\r\n  ],\r\n});\r\n```\r\n\r\nIn `next.config.js`:\r\n\r\n```ts\r\nmodule.exports = withSentryConfig(\r\n  nextConfig,\r\n  {\r\n    silent: true,\r\n    org: \"ystv\",\r\n    project: \"bowser-server\",\r\n    authToken: process.env.SENTRY_AUTH_TOKEN,\r\n    release: sentryRelease,\r\n  },\r\n  {\r\n    widenClientFileUpload: true,\r\n    transpileClientSDK: false,\r\n    tunnelRoute: \"/monitoring\",\r\n    hideSourceMaps: true,\r\n    disableLogger: true,\r\n    disableClientWebpackPlugin: process.env.IS_PRODUCTION_BUILD !== \"true\",\r\n    disableServerWebpackPlugin: process.env.IS_PRODUCTION_BUILD !== \"true\",\r\n  },\r\n);\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. Set up the Next.js integration with `tunnelRoute` enabled\r\n2. Deploy the application on a hosting provider that does _not_ set `Strict-Transport-Security`\r\n3. Visit a page in the application\r\n4. Watch the browser DevTools Network tab for a request to `/monitoring`\r\n\r\n### Expected Result\r\n\r\nNo `Strict-Transport-Security` header is present on any response\r\n\r\n### Actual Result\r\n\r\nThe initial response from the backend does not have `Strict-Transport-Security`:\r\n\r\n\u003cimg width=\"675\" alt=\"image\" src=\"https://github.com/getsentry/sentry-javascript/assets/2904440/eb4b234c-ef4d-4d73-b020-3c79cd1d05c4\">\r\n\r\n\r\nHowever, the response to the `/monitoring` request has the `Strict-Transport-Security` header from the Sentry SaaS backend:\r\n\r\n![image](https://github.com/getsentry/sentry-javascript/assets/2904440/d64a68a7-9991-4777-904e-1e5e4a83790e)\r\n\r\nLooking in chrome://net-internals#hsts you can indeed see that this has unintentionally enabled dynamic HSTS for the domain in question:\r\n\u003cimg width=\"388\" alt=\"image\" src=\"https://github.com/getsentry/sentry-javascript/assets/2904440/99f1a74e-784b-4421-8ede-f7f84d188097\">\r\n\r\nAny subsequent non-HTTPS requests to the domain will now fail.\r\n","author":{"url":"https://github.com/markspolakovs","@type":"Person","name":"markspolakovs"},"datePublished":"2023-09-01T11:46:20Z","url":"https://github.com/getsentry/sentry-javascript/issues/8931"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1357a695-e21e-4f2c-20ef-8c51842d9b00
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD224:72378:3D0A:4E7D:6B04AD57
html-safe-nonce392de6e8ff759aeac8d993b9fbfafcb9f07464ab7416fd6e1f99d72be7d5ba70
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjI0OjcyMzc4OjNEMEE6NEU3RDo2QjA0QUQ1NyIsInZpc2l0b3JfaWQiOiI0NTA3MDM3NDg4NDkzNDA3NTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd7533fd5840e96fbe6706699dff8453b98cd2c0d5f8c4c0f65bb918754ed6d28
hovercard-subject-tagissue:1877276577
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/8931/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2ae90ece5fd50067634a8b5083b6086eb3852fc0d1c9e73ffb364f01547d81ed/getsentry/sentry-javascript/issues/8931
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2ae90ece5fd50067634a8b5083b6086eb3852fc0d1c9e73ffb364f01547d81ed/getsentry/sentry-javascript/issues/8931
og:image:altIs there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemarkspolakovs
hostnamegithub.com
expected-hostnamegithub.com
Nonef1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
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
releaseffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/8931#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F8931
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%2Fgetsentry%2Fsentry-javascript%2Fissues%2F8931
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/8931
Reloadhttps://github.com/getsentry/sentry-javascript/issues/8931
Reloadhttps://github.com/getsentry/sentry-javascript/issues/8931
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues333 (333)https://github.com/getsentry/sentry-javascript/issues
Pull requests52 (52)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/8931
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/8931
#8936https://github.com/getsentry/sentry-javascript/pull/8936
tunnelRoute passes through Strict-Transport-Security header, enabling HSTS on users' domainshttps://github.com/getsentry/sentry-javascript/issues/8931#top
#8936https://github.com/getsentry/sentry-javascript/pull/8936
https://github.com/markspolakovs
markspolakovshttps://github.com/markspolakovs
on Sep 1, 2023https://github.com/getsentry/sentry-javascript/issues/8931#issue-1877276577
https://github.com/getsentry/sentry-javascript/issueshttps://github.com/getsentry/sentry-javascript/issues
https://docs.sentry.io/https://docs.sentry.io/
https://github.com/getsentry/sentry-javascript/releaseshttps://github.com/getsentry/sentry-javascript/releases
https://private-user-images.githubusercontent.com/2904440/265011751-eb4b234c-ef4d-4d73-b020-3c79cd1d05c4.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU0Njg5MzEsIm5iZiI6MTc5NTQ2ODYzMSwicGF0aCI6Ii8yOTA0NDQwLzI2NTAxMTc1MS1lYjRiMjM0Yy1lZjRkLTRkNzMtYjAyMC0zYzc5Y2QxZDA1YzQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjNUMjExNzExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzdjMDQ2NjI3ZmZhNDY2MDg1MDU1OWZlMzEwN2I4MjE0NmJlZjgzODE3MTNmMWZkYjRmYTU0Mjc4Y2Y3Yjc3MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.xG9Gjrn0I_u4QTm0TXe5Aw8fEcsFLqcuQ3kZP1Y66WM
https://private-user-images.githubusercontent.com/2904440/265011234-d64a68a7-9991-4777-904e-1e5e4a83790e.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU0Njg5MzEsIm5iZiI6M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UMjExNzExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGRkMWU0NTVkYTZlNmQ1ZDlkNjg2Yjg0Mjg4YWU5MGI1ZDI2YTk2ZGViODBjNDMwYjNhMDMyMTEwYjdjNzUyNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.K7U8cF9FraKX8-_4YNwil_xKwn415WlceW_4dmzlpj4
markspolakovshttps://github.com/markspolakovs
Type: Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
on Sep 1, 2023https://github.com/getsentry/sentry-javascript/issues/8931#event-10256395920
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Sep 1, 2023https://github.com/getsentry/sentry-javascript/issues/8931#event-10256396169
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
on Sep 1, 2023https://github.com/getsentry/sentry-javascript/issues/8931#event-14893818083
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
on Sep 1, 2023https://github.com/getsentry/sentry-javascript/issues/8931
github-actionshttps://github.com/apps/github-actions
Package: Nextjshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20Nextjs%22
on Sep 1, 2023https://github.com/getsentry/sentry-javascript/issues/8931#event-10256397666
https://github.com/lforst
lforsthttps://github.com/lforst
on Sep 1, 2023https://github.com/getsentry/sentry-javascript/issues/8931#issuecomment-1702652596
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Sep 1, 2023https://github.com/getsentry/sentry-javascript/issues/8931#event-10256633642
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
on Sep 1, 2023https://github.com/getsentry/sentry-javascript/issues/8931
lforsthttps://github.com/lforst
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#8936https://github.com/getsentry/sentry-javascript/pull/8936
on Sep 6, 2023https://github.com/getsentry/sentry-javascript/issues/8931#event-10295295698
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/8931
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/8931
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.