Skip to content

Commit

Permalink
fix(nextjs): Strictly validate tunnel target parameters (#9415)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Oct 31, 2023
1 parent 4371b2c commit ddbda3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nextjs/src/config/withSentryConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ function setUpTunnelRewriteRules(userNextConfig: NextConfigObject, tunnelPath: s
{
type: 'query',
key: 'o', // short for orgId - we keep it short so matching is harder for ad-blockers
value: '(?<orgid>.*)',
value: '(?<orgid>[a-fA-F0-9]*)',
},
{
type: 'query',
key: 'p', // short for projectId - we keep it short so matching is harder for ad-blockers
value: '(?<projectid>.*)',
value: '(?<projectid>\\d*)',
},
],
destination: 'https://o:orgid.ingest.sentry.io/api/:projectid/envelope/?hsts=0',
Expand Down

0 comments on commit ddbda3c

Please sign in to comment.