Event submission rejected with_reason: Cors

I am getting this error in devtools as response with 403 status code.

{"detail":"event submission rejected with_reason: Cors"}

Same here. JS/React SDK. Some event fires come back with this error, some don’t. My app is running on a Netlify preview build.

hi @mittalyashu, @jorisw,

we faced same issues setting up our VueJS app on sentry.
After trying different stuff we found out that we didnt set correctly the “Allowed Domains” in the project general settings… you could try this also… btw, it didnt worked immediatly, but started working after a couple of minutes.
image

2 Likes

Where can I open this project general settings?

@ManonXiong here:

%SENTRY_URL%/settings/sentry/projects/%PROJECT_ID%/

1 Like