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
But I'm receiving CORS error on http://localhost:3001/v1/inbox/session
Is it possible to overcome this problem?17 Replies
@Russ Salad
Can you share .env file values?
Hey @Pawan Jain
do you need anything else?
@Russ Salad
comment this variable
REACT_APP_API_URL=http://localhost:3000
still the same CORS issue
@Russ Salad, you just advanced to level 1!
@Russ Salad
Did you try removing all containers and then restarting after this variable change?
I just tested, it is working for me
yes, did you tried to do it with some separate app?
Because I'm trying to integrate it locally to my app, running novu in parallel
Yeah, it should work
can you please send me the patch file with the changes that you made to novu codebase?
and steps how you run it?
I did not make any changed to codebase
I am using this example env as it is
whats the location of this env file?
And can you please also attach steps how you run the app?
how can I configure api to run on port 3001?
I need 3000 for my app
I updated Api config to have port 3001 in docker-compose.yml
But from my app on localhost:3000 I still get CORS hitting api on 3001
@Pawan Jain Am I doing everything correctly?