-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
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/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
7.61.0
Framework Version
Next 13.4.10
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
-
set up HOST (my setting is 127.0.0.1 cdn.localhost)
-
config next.config.js
async headers() {
return [
{
source: '/_next/:path*',
headers: [
{
key: 'Access-Control-Allow-Origin',
value: '*',
},
],
},
]
},
assetPrefix: 'http://cdn.localhost:3000',
crossOrigin: 'anonymous',
module.exports = withSentryConfig(nextConfig)
- run dev mode
pnpm dev - client-side route to some page
Expected Result
no CORS error happen and the route correctly without a full reload
Actual Result
- I am in route /a
- I click Link tag to go to /b
- It got an error CORS and the current page has a full reload and i am still in /a
- click Link tag to go to /b
- error disappears and go to /b correctly
this happens only when I set assetPrefix + withSentryConfig and run in dev mode
Metadata
Metadata
Assignees
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
Projects
Status
No status