NovuN
Novu16mo ago
Russ Salad

CORS hitting locally novu api from react app

Hey,
Im running local novu project with docker-compose -f docker-compose.yml up
In my react app I'm using Novu Inbox component
<NovuProvider
  backendUrl="http://localhost:3001"
  socketUrl="http://localhost:3002"
  subscriberId={'on-boarding-subscriber-id-123'}
  applicationIdentifier={'czg1gd4g3AQF'}
>
  <Inbox
    applicationIdentifier="czg1gd4g3AQF"
    subscriberId="66e2f3cdffbfba3cb15cba7f"
    routerPush={(path: string) => navigate(path)}
  />
</NovuProvider>


But I'm receiving CORS error on http://localhost:3001/v1/inbox/session

Is it possible to overcome this problem?
image.png
Was this page helpful?