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.