Skip to content

lab-yue/sentry-header-reproduction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentry-header-reproduction

reproduction of getsentry/sentry-javascript#6077 (comment)

Setup

NOTE: the default port for reproduction is 5173

Open in StackBlitz

or

  • pnpm i
  • pnpm dev

Expectation

When WITH_SENTRY in src/main.ts set to true, http://localhost:5173/ will display "download failed" with following error.

Access to fetch at 'http://localhost:3000/real-download-path' (redirected from 'http://localhost:5173/api/download') from origin 'http://localhost:5173' has been blocked by CORS policy: Request header field baggage is not allowed by Access-Control-Allow-Headers in preflight response.

By setting WITH_SENTRY to false, the error will be resolved.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published