Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Novu/js CORS IN LOCALHOST AFTER RUN DOCKER COMPOSE #6675

Closed
2 tasks done
bekmarc opened this issue Oct 10, 2024 · 4 comments
Closed
2 tasks done

🐛 Bug Report: Novu/js CORS IN LOCALHOST AFTER RUN DOCKER COMPOSE #6675

bekmarc opened this issue Oct 10, 2024 · 4 comments
Labels

Comments

@bekmarc
Copy link

bekmarc commented Oct 10, 2024

📜 Description

The bug happen after i luanch docker compose and in angular i install Novu/Js for more customization, but i got unexcpeted Error

"Blocage d’une requête multiorigine (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://localhost:3000/v1/inbox/session. Raison : l’en-tête « novu-api-version » n’est pas autorisé d’après l’en-tête « Access-Control-Allow-Headers » de la réponse de pré-vérification des requêtes CORS."

👟 Reproduction steps

1 Install angular 18
2 install Novu/Js
3 Launch Novu dockser compôse community
4 Configure it (follow https://docs.novu.co/inbox/headless/get-started)
5 and after ng serve you got "cors origins error "

👍 Expected behavior

It should work without cors error

👎 Actual Behavior with Screenshots

Screenshot 2024-10-10 201302

Novu version

Self-hosted

npm version

No response

node version

No response

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

None

Copy link

linear bot commented Oct 10, 2024

@dmitrydrynov
Copy link

I think this issue has a common problem with this one
#6644

@doanthai
Copy link

@bekmarc What do you use novu-api image docker version? Please use tag 2.0.0, novu-api allow all origin if use set NODE_ENV is test or local.
See code at here

@bekmarc bekmarc closed this as completed Oct 11, 2024
@bekmarc bekmarc reopened this Oct 11, 2024
@bekmarc bekmarc closed this as completed Oct 11, 2024
@bekmarc
Copy link
Author

bekmarc commented Oct 11, 2024

i fix issue after i change all image tag in docker compose to latest and launch "docker-compose up -d" for community file and evrything OK🪄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants